フィルターのクリア

I have a binary circle (white) which the edge are not smooth , is jagges. and i know the pixel size is 5mm. how can i find the distances of all pixels inside the circle from the outer edges?

1 回表示 (過去 30 日間)
Akshit
Akshit 2015 年 4 月 18 日
回答済み: Image Analyst 2015 年 4 月 18 日
I have a binary circle which the edge are not smooth , is jagges. and i know the pixel size is 5mm. how can i find the distances of all pixels inside the circle from the outer edges?

回答 (1 件)

Image Analyst
Image Analyst 2015 年 4 月 18 日
Get a Euclidean distance map with bwdist():
edm = bwdist(binaryImage) * 5;

Community Treasure Hunt

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

Start Hunting!

Translated by