Why points on the object boundary are repeating after some interval using bwboundaries command in Matlab...?

2 ビュー (過去 30 日間)
Hello, I am using the bwboundaries command to detect the points on the boundary of 2-D object(Image),But i have observe one thing using bwboundaries command the points on the object boundary are repeating after some interval which i don't required. Please tell me how to detect exact number of points on the boundary without repetition..? Is there any alternative to detect exact number of points..? Please help me, my algorithm is not working because of the repetition of the points. Thanks in advance.
  6 件のコメント
Image Analyst
Image Analyst 2015 年 12 月 7 日
bwboundaries works off white objects. You have two there - the outer one, and the one inside the black shape. So you'll get a cell array with 2 cells. Inside each cell is a N rows by 2 columns matrix of doubles. Which white blob has the repeated (x,y) coordinate, and what row is it at?
harshal j
harshal j 2015 年 12 月 7 日
Thanks for your comments, If two objects are there then you are right,i should get the two cell but after applying the bwboundaries in above image i am getting only one cell of size (1988x2)and row no 1066 is again repeating at 1433. Ok forget about above shape i just want to know is it possible to repeat the co-ordinates again..? is it right..?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeGeometric Transformation and Image Registration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by