How to make label on the image and find the distance?
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Prashant
el 9 de Ag. de 2020
Comentada: Image Analyst
el 16 de Ag. de 2020
Hello,
I have one image and i want to put label on it for finding the distace.
anyone suggest or give code to make label on that region which shown in fig. and also want to plot line between two black line in that box.
alos i attched my file to look at my code.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/343699/image.jpeg)
0 comentarios
Respuesta aceptada
Image Analyst
el 9 de Ag. de 2020
I don't know how a label would help you "for finding the distace". But anyway, to put a text label on the image use the text() function. To put a rectangle on the image use the rectangle() function. To plot over the image, use the plot() function.
When you say "finding distance between two black line" I don't know what that means. There are lots of distances between lots of points on two black lines, like your horizontal line and your vertical line. What distance are you talking about?
3 comentarios
Image Analyst
el 16 de Ag. de 2020
See my answer in your duplicate question: Click Here for the Answer
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!