How to blend an image patch within an image?
Show older comments
I have an image where I am taking a 128x128 patch from, performing some operation, and then reinserting it back into the image.

The image on the right shows a clear boundary between the new image patch and the surrounding image. My question is, is there some blending operation to make the values of the patch more similar to the surroundings? I tried a basic conv2 to blur the boundaries, but it didn't seem to help. I also tried to pad the patch with 0's to make it the same size as the original image, then use
imfuse(im, patch, 'blend')
to try and blend it, but it still give very distinct boundaries/values inside the patch don't match the outside.

Any advice would be greatly appreciated, thanks.
Accepted Answer
More Answers (0)
Categories
Find more on Convert Image Type in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

