How to do template Matching between two images?

6 visualizaciones (últimos 30 días)
Asif Hasan
Asif Hasan el 13 de Sept. de 2014
Comentada: Image Analyst el 13 de Sept. de 2014
Hi,
I have two images one is a binary image and other is a rgb image. I want to apply template matching method between these images (first 1 will be a template image & 2nd is the original image) for matching. What should i do? Please describe about template of an image. Thanks in advance.
Regards Asif

Respuestas (1)

Image Analyst
Image Analyst el 13 de Sept. de 2014
Editada: Image Analyst el 13 de Sept. de 2014
That's almost exactly what my demo of normalized cross correlation does. Turn your binary image into an RGB image
templateImage = cat(3, binaryImage, binaryImage, binaryImage);
Then run the m-file attached below the image.
  6 comentarios
Asif Hasan
Asif Hasan el 13 de Sept. de 2014
I already did but they are using template matching between two images but i don't understand how do i create a template from my binary image?
Image Analyst
Image Analyst el 13 de Sept. de 2014
I don't know, other than what I've already told you. Why don't you email the authors for further clarification?

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by