1 | initial version |
After a quick reading of reference I think that is normal behavior. In paragraph Discrete poison solver equation equation (7) need all pixels of destination image.f you make difference between original destination and seamlessClone destination you can find some small difference very far from your paste image.
I think if you want reduce time may be you can extract from a small rectangle from destination greater than your paste image and use this image as destination. I think that using a second mask would improve this function
PS @moderator In example cloning_demo.cpp I cannot found images used in this example in opencv. I have found image in this link. I can make a Pull request but that's not my example and
2 | No.2 Revision |
After a quick reading of reference I think that is normal behavior. In paragraph Discrete poison solver equation equation (7) need all pixels of destination image.f you make difference between original destination and seamlessClone destination you can find some small difference very far from your paste image.
I think if you want reduce time may be you can extract from a small rectangle from destination greater than your paste image and use this image as destination. I think that using a second mask would improve this function
PS @moderator In example cloning_demo.cpp I cannot found images used in this example in opencv. I have found image in this link. I can make a Pull request but that's not my example andand not my images
3 | No.3 Revision |
After a quick reading of reference I think that is not a normal behavior. In paragraph Discrete poison solver equation equation (7) need all pixels of boundary destination image.f you make difference between original destination and seamlessClone destination you can find some small difference very far from your paste image.
image
I think if you want reduce time may be you can extract from a small rectangle from destination greater than your paste image and use this image as destination.
But may be there is something strange in code at line 347 computeDerivatives(destination,patch,binaryMask); there is a mask but in computeDerivatives mask is not used when gradient is estimated. I think that using a second mask would improve this functiondefined boundary in the paper. So why omputeGradientX and Y for all images?
PS @moderator In example cloning_demo.cpp I cannot found images used in this example in opencv. I have found image in this link. I can make a Pull request but that's not my example and not my images
4 | No.4 Revision |
After a quick reading of reference I think that is not a normal behavior. In paragraph Discrete poison solver equation equation (7) need all pixels of boundary destination image
image
I think if you want reduce time may be you can extract from a small rectangle from destination greater than your paste image and use this image as destination.
destination.
But may be there is something strange in code at line 347 computeDerivatives(destination,patch,binaryMask); there is a mask but in computeDerivatives mask is not used when gradient is estimated. I think mask defined boundary in the paper. So why omputeGradientX computeGradientX and Y for all images?
PS @moderator In example cloning_demo.cpp I cannot found images used in this example in opencv. I have found image in this link. I can make a Pull request but that's not my example and not my images
5 | No.5 Revision |
After a quick reading of reference I think that is not a normal behavior. In paragraph Discrete poison solver equation equation (7) need all pixels of boundary destination image
I think if you want reduce time may be you can extract from a small rectangle from destination greater than your paste image and use this image as destination.
But may be there is something strange in code at line 347 computeDerivatives(destination,patch,binaryMask); there is a mask but in computeDerivatives mask is not used when gradient is estimated. I think mask defined boundary in the paper. So why computeGradientX and Y for all images?
PS @moderator In example cloning_demo.cpp I cannot found images used in this example in opencv. I have found image in this link. link. I can make a Pull request but that's not my example and not my images
6 | No.6 Revision |
After a quick reading of reference I think that is not a normal behavior. behavior for normal clonning. In paragraph Discrete poison solver equation equation (7) need all pixels of boundary destination image
I think if you want reduce time may be you can extract from a small rectangle from destination greater than your paste image and use this image as destination.
But may be there is something strange in code at line 347 computeDerivatives(destination,patch,binaryMask); there is a mask but in computeDerivatives mask is not used when gradient is estimated. I think mask defined boundary in the paper. So why computeGradientX and Y for all images?
PS @moderator In example cloning_demo.cpp I cannot found images used in this example in opencv. I have found image in this link. I can make a Pull request but that's not my example and not my images
7 | No.7 Revision |
After a quick reading of reference I think that is not a normal behavior for normal clonning. In paragraph Discrete poison solver equation equation (7) need all pixels of boundary destination image
I think if you want reduce time may be you can extract from a small rectangle from destination greater than your paste image and use this image as destination.
But may be there is something strange in code at line 347 (opencv\modules\photo\src\seamless_cloning_impl.cpp) computeDerivatives(destination,patch,binaryMask); there is a mask but in computeDerivatives mask is not used when gradient is estimated. estimated at line 267 (opencv\modules\photo\src\seamless_cloning_impl.cpp) . I think mask defined boundary in the paper. So why computeGradientX and Y for all images?
PS @moderator In example cloning_demo.cpp I cannot found images used in this example in opencv. I have found image in this link. I can make a Pull request but that's not my example and not my images