フィルターのクリア

How to mapped largest contour from pathlines?

5 ビュー (過去 30 日間)
Suman
Suman 2022 年 12 月 24 日
コメント済み: Image Analyst 2022 年 12 月 31 日
I need to find largest contour from the pathline.

採用された回答

Image Analyst
Image Analyst 2022 年 12 月 24 日
I don't know what pathline is. But if you can export your contour lines to a binary image, then you can extract the longest one with bwareafilt
longestContour = bwareafilt(binaryImageOfContours, 1); % Get only the blob with most number of pixels.
  11 件のコメント
DGM
DGM 2022 年 12 月 31 日
編集済み: DGM 2022 年 12 月 31 日
If the field is represented with a limitation on maximum density of plotted lines, I don't see how you can discern whether a path is closed by looking at whether a plotted line is closed.
Image Analyst
Image Analyst 2022 年 12 月 31 日
I don't know. We're all just guessing here because he doesn't want to share his original data or code for how the vector field was created or how the contour lines were created. Obviously trying to figure it out from a screenshot is not the best way, and susceptible to the size of the plot on screen, but he's not sharing anything else so what can we do? We have no context at all other than it's a vector field. I'm going to quit soon unless more helpful information is forthcoming.
@Suman If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Performance についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by