How can I draw a line on an image and count the pixels along the line?
Mostrar comentarios más antiguos
I have a image of some rectangles and I want to draw a line across some of the rectangles. How can I count the pixels along the line and find out which part has the minimum intercepts?
Thanks, Gene
Respuestas (2)
Image Analyst
el 29 de Ag. de 2012
0 votos
Let's say you drew the line with improfile(). Then you'll have the endpoints of the line and you can use the Pythagorean theorem to get the distance.
I don't know what you mean by the part that has the minimum intercepts. Perhaps uploading an image and a better explanation would help.
Gene
el 29 de Ag. de 2012
0 votos
Categorías
Más información sobre Region and Image Properties 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!