How can I find the x and y coordinates of some objets into an image?

1 visualización (últimos 30 días)
Alberto
Alberto el 7 de Mayo de 2014
Comentada: Image Analyst el 10 de Mayo de 2014
I have the following image
and I need to find de x and y coordinates of every music note into the image. I have tried with the function normxcorr2 using the mask of a head of one note, but I only am able to detect one of the notes (the most similar to my mask). Could anyone help me or give me another point of view?. Thank you in advance for your time and support.

Respuestas (1)

Image Analyst
Image Analyst el 7 de Mayo de 2014
See this section:
23.2.7.3 Analysis of Music, Musical Notation, Music Scores
That will have the good methods. What I might propose might not be as robust for all note shapes. But that would be to find the QR codes in the corner and crop the image to the center, assuming the notes only appear there. Then I'd call imfill() to fill in note heads. You could then use normxcorr() for each note template. Or else see if each note has a unique area and classify notes based on area. Or skeletonize it and classify based on number of endpoints. But the papers will have a lot better methods so read the abstracts and code up the best sounding one.
  2 comentarios
Alberto
Alberto el 10 de Mayo de 2014
Editada: Alberto el 10 de Mayo de 2014
Thank you for your ideas. I am trying with the regionprops() method, because with some instructions like BoundingBox and Centroid before delete the QR codes, I can obtain the center and area of each note. Apparently it is working, but I need to do a better test. Thank you for the documentation and biography. It looks a great resource!!.
Image Analyst
Image Analyst el 10 de Mayo de 2014
You're welcome. If you need any help with the code once you have it more developed, come back. Could you mark the answer as Accepted then, to close it out?

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by