Displaying a value on a image using Imagesc
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gova ReDDy
am 11 Mär. 2014
Kommentiert: Image Analyst
am 13 Mär. 2014
Hello,
Can someone explain how to print a value on the image(required image).I tried this but the image was flipped and displayed
plot(5,6,'*r');test=imread('Capture.JPG');hold on;imagesc([.001 .001], [.001 0.001], test)
I also don't understand this scaling [.001 .001], [.001 0.001]
can someone explain of how to use the imagesc to print a value on the(or inside the) image .
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 13 Mär. 2014
Just use the text() function
caption = sprintf('At (row %d, column %d), the value = %.3f', row, column, yourValue);
text(column, row, caption, 'FontSize', 30, 'Color', [.7, .4, .1]);
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!