reduce number of points in activecontour?

2 ビュー (過去 30 日間)
Guy Tsror
Guy Tsror 2017 年 11 月 28 日
コメント済み: Guy Tsror 2017 年 11 月 30 日
I am using the activecontour function and getting a mask back. Then, I want to use bwboundaries to extract the coordinates, and that works well too. However, I'm getting too many points, and would like to have less (it's ok if the contour will be less smooth as a result). But I cannot find how do I do that, assuming I use the Chan-Vese method, and not 'Edge' (meaning, I can't use SmoothFactor property).

採用された回答

Walter Roberson
Walter Roberson 2017 年 11 月 28 日
You might be able to make use of reducepatch()
It might also be suitable to do spline interpolation. Or you might be able to use the interparc File Exchange contribution (which uses spline interpolation in some cases.)
  7 件のコメント
Walter Roberson
Walter Roberson 2017 年 11 月 30 日
I tried reducepatch but I found that it generated a lot of triangles. Perhaps if I had used boundary() (an active contour) on the vertices after that...
Guy Tsror
Guy Tsror 2017 年 11 月 30 日
Well yeah that's what happened to me too. I just re-organized the vertices using their arctan, compared to the centroid of the polygon

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by