Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Artifacts appear using OpenCV 3.1.0, in 2.4.9 it's working perfectly.

The reason is because warped images were changed to be conformed by borderType BORDER_CONSTANT instead of by BORDER_REFLECT. That leads to black gaps in the images that will blur with foreground pixels in the pyramidal blending step, resulting in the mentioned artifacts. I show two examples of warped images to see the difference:

With BORDER_CONSTANT:

image description

With BORDER_REFLECT:

image description

First case is returning artifacts, second is working perfectly.

I've already report the issue to change it back.

Artifacts appear using OpenCV 3.1.0, in 2.4.9 it's working perfectly.

The reason is because warped images were changed to be conformed by borderType BORDER_CONSTANT instead of by BORDER_REFLECT. That leads to black gaps in the images that will blur with foreground pixels in the pyramidal blending step, resulting in the mentioned artifacts. I show two examples of warped images to see the difference:

With BORDER_CONSTANT:

image description

With BORDER_REFLECT:

image description

First case is returning artifacts, second is working perfectly.

I've already report reported the issue to change it back.