how to display string over image for scene labeling?
Mostrar comentarios más antiguos
how to label the objects in the scene image after performing training and tesing..
Respuestas (2)
Walter Roberson
el 7 de Dic. de 2013
0 votos
text()
3 comentarios
sheno39
el 7 de Dic. de 2013
Walter Roberson
el 7 de Dic. de 2013
xpos = 5;
ypos = 3.9;
text(xpos, ypos, 'this is a label')
sheno39
el 7 de Dic. de 2013
chitresh
el 7 de Dic. de 2013
>> a = imread('Image_File');
>> binary = im2bw(a);
>> l = bwlabel(a_b,4);% 4 or 8 we can choose according to our requirement
>> [r, c] = find(l==2);
>> rc = [r c];
>> imshow(l == 2)
>> s = regionprops(l, 'Centroid');
>> imshow(a_b)
>> for k = 1:numel(s)
c = s(k).Centroid;
text(c(1), c(2), sprintf('%d', k),'HorizontalAlignment', 'center','VerticalAlignment', 'middle');
end
hold off
if you problem is solved accept the answer :-)
Categorías
Más información sobre Ground Truth Labeling en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!