You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's even stranger behavior
If i set LINES to 1 or 2 i get terminate called after throwing an instance of 'std::length_error' what(): vector::_M_default_append Aborted (core dumped)
If i set LINES to 3 i get Traceback (most recent call last): File "seamless_test.py", line 13, in <module> res = cv.seamlessClone(src, dst, mask, (50, 50), cv.NORMAL_CLONE) cv2.error: OpenCV(3.4.6-dev) /home/vfilev/packages/opencv/modules/core/src/matrix_wrap.cpp:1658: error: (-215:Assertion failed) !fixedSize() in function 'release'
and if i set LINES to 60 i get the result below
Example:
So you can see that circle inside image is gone but circle on a border is left here.
The text was updated successfully, but these errors were encountered:
Opencv 3.4.6-dev
Python 3.6.8
There is a problem in seamlessClone that was produced by this pr #12512.
opencv/modules/photo/src/seamless_cloning.cpp
Line 77 in 72ccb5f
this line places zeros on mask borders.
Here is code to reproduce:
That's even stranger behavior
If i set LINES to 1 or 2 i get
terminate called after throwing an instance of 'std::length_error' what(): vector::_M_default_append Aborted (core dumped)
If i set LINES to 3 i get
Traceback (most recent call last): File "seamless_test.py", line 13, in <module> res = cv.seamlessClone(src, dst, mask, (50, 50), cv.NORMAL_CLONE) cv2.error: OpenCV(3.4.6-dev) /home/vfilev/packages/opencv/modules/core/src/matrix_wrap.cpp:1658: error: (-215:Assertion failed) !fixedSize() in function 'release'
and if i set LINES to 60 i get the result below

Example:
So you can see that circle inside image is gone but circle on a border is left here.
The text was updated successfully, but these errors were encountered: