How to identify object using shape?

4 visualizaciones (últimos 30 días)
CHINNI VENKATA RAMESH
CHINNI VENKATA RAMESH el 27 de Dic. de 2016
Comentada: Image Analyst el 28 de Dic. de 2016
I want find object in given image for example I have butterfly image with matrix size is 123X235 and I given image contain butterfly with different size but same shape (ex:123X235,24X54,235X345,10X32).It is possible to identify the butterfly image ?

Respuestas (1)

Image Analyst
Image Analyst el 27 de Dic. de 2016
Yes. Use imresize() and then run your algorithm on it. Or make an algorithm smart enough to identify the butterfly without depending on the image matrix size being a certain size.
  6 comentarios
CHINNI VENKATA RAMESH
CHINNI VENKATA RAMESH el 28 de Dic. de 2016
Image Analyst
Image Analyst el 28 de Dic. de 2016
Well for that it's really easy. Just convert to hsv color space and threshold on saturation and call bwareafilt() to extract only the butterflies. But then you'll show me a picture of a flock of monarch butterflies coating a tree and ask me to count them and of course that simple algorithm won't work for that image.
See color segmentation methods in my File Exchange http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 , like this one on hue segmentation that you can adapt to be on saturation segmentation.

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