Find the most furthest point in binary images

1 回表示 (過去 30 日間)
Eliska Paulikova
Eliska Paulikova 2022 年 11 月 18 日
回答済み: Image Analyst 2022 年 11 月 18 日
Hello, I have a binary image, and I would like to find x and y values of the most furthest point ---> so the point which is closest to border.
How can I do that?
Thank you
  1 件のコメント
KSSV
KSSV 2022 年 11 月 18 日
What exactly you are expecting?

サインインしてコメントする。

回答 (1 件)

Image Analyst
Image Analyst 2022 年 11 月 18 日
You can find all xy points in the binary image using
[y, x] = find(binaryImage);
You can find perimeter points with bwboundaries or bwperim
[y, x] = find(bwperim(binaryImage));
The point which is closest to the border of the blob is a point on the perimeter.
To find which point in the blob is closest to the border of the image, use bwdist
If you still need help, then explain better what you want in your reply, since now it's ambiguous.

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by