How to print regionprops properties on image?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
sacprasanna
el 7 de Dic. de 2015
Editada: Walter Roberson
el 7 de Dic. de 2015
Dear All,
I want to print each labeled region area on the image it self? I calculated label matrix and regionprops matrix using area.
g=regionprops(LB,'Area');
>> g(19)
ans =
Area: 166
Then I want to print these area on image it self. (pixel width is 0.07).
Like this picture.

Thanks for helping
Regards
Chamara
0 comentarios
Respuesta aceptada
Walter Roberson
el 7 de Dic. de 2015
Editada: Walter Roberson
el 7 de Dic. de 2015
Does the label need to go in the image, or can it go over the image?
If it can go over the image, then as well as asking for the regionprops Area, also ask for the Centroid, and then text() the Area to the location given by the Centroid. text() will draw over the image.
If you need to create a new image that has the text "burned in" then if you have the Computer Vision Toolbox then there is a insertText() function, or you can use the older Vision.TextInserter for now.
1 comentario
sacprasanna
el 7 de Dic. de 2015
Editada: Walter Roberson
el 7 de Dic. de 2015
Más respuestas (0)
Ver también
Categorías
Más información sobre Computer Vision with Simulink en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!