Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong eroding 3 pixels in seamlessclone #17450

Open
Jinghui-Wang opened this issue Jun 2, 2020 · 0 comments
Open

Wrong eroding 3 pixels in seamlessclone #17450

Jinghui-Wang opened this issue Jun 2, 2020 · 0 comments
Labels
bug category: photo Hackathon https://opencv.org/opencv-hackathon-starts-next-week/

Comments

@Jinghui-Wang
Copy link

Jinghui-Wang commented Jun 2, 2020

System information (version)
  • OpenCV => 3.4
  • Operating System / Platform => ❔
  • Compiler => ❔
Detailed description

erode(binaryMask, binaryMask, Kernel, Point(-1,-1), 3);

It leads to undesired color propagation into the mask area, for the laplacian on the mask boarder to be used in poisson solver is same as the dst‘s. It's not consistent with the algorithm proposed in the paper, which directly uses the original mask to compute Laplacian.

@asmorkalov asmorkalov changed the title Why eroding 3 pixels in seamlessclone Wrong eroding 3 pixels in seamlessclone Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug category: photo Hackathon https://opencv.org/opencv-hackathon-starts-next-week/
Projects
None yet
Development

No branches or pull requests

3 participants