How can I draw a line on an image and count the pixels along the line?
3 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (2 件)
Image Analyst
2012 年 8 月 29 日
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.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!