From Image to Pixel
1 回表示 (過去 30 日間)
古いコメントを表示
Hi!
I have a binary image that represents the map of a building. The white part represents the walkable area, while the black area represents the walls and non-walkable parts. Also in the white area I have 38 small points which represent some location inside the building. Given this image I would like to get the position in the binary matrix of these points(The pixel coordinates). Does anyone have an idea on how to do it in an efficient way? I am not really expert in handling images.
Thanks, Giovanni
0 件のコメント
回答 (2 件)
Jan
2011 年 3 月 31 日
How do you distinguish the "points" and the "walls/non-walkable area"? If your image is binary, both are black - correct?
Then the "points" have only one pixel, but no connection to another black pixel? Or are the "points" allowed to touch a wall on a side or diagonal?
I assume IMERODE can help you - if you have the image processing toolbox.
Inother words: Please explain the problem with more details.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!