How to blend an image patch within an image?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Convert Image Type en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


