How can I match a small part of an image to its whole image?

3 visualizaciones (últimos 30 días)
Neo
Neo el 7 de Jul. de 2015
Comentada: sonia khan el 4 de Oct. de 2015
Let's say I have an image of a flower, I cut out 3 seemingly identical smaller images of petals from that flower. Now without simply looking at the image and putting those petals back in their EXACT locations, how can I know where each petal belongs EXACTLY in that image of the flower? I thought about doing histogram analysis of each individual petal's image then matching it back to original image, but I am not sure if the histogram of an image can show differences between very similar images. Is this a good method? Is there a better method? Thanks Mates!

Respuesta aceptada

Image Analyst
Image Analyst el 7 de Jul. de 2015
No, that histogram algorithm won't work at all, as you'll realize if you just give it a little thought. What you want to use is normalized cross correlation, which is done by the function normxcorr2() in the Image Processing Toolbox. I'm attaching my demo of it, below this image that it creates.
  22 comentarios
Neo
Neo el 3 de Ag. de 2015
Ah. I see thanks Analyst.
sonia khan
sonia khan el 4 de Oct. de 2015
salam can u plz give me the code of this

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Segmentation and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by