フィルターのクリア

Fit rectangle to binary mask

3 ビュー (過去 30 日間)
Stefan Lang
Stefan Lang 2021 年 4 月 23 日
コメント済み: Matt J 2021 年 5 月 1 日
I have a binary mask prediction imported into matlab from neural network training. It's just a large array filled with zeros, except where the predictied structures lies, it is filled with ones. The predicted structure looks more ore less like a rectangle and i need to get these 4 corner coordinates from the predicted mask. So my idea would be to fit a rectangle to the predicted mask and read out the corner coordinates of the rectangle. Is there an existing function for this? Or does anyone have another approach?

採用された回答

Matt J
Matt J 2021 年 4 月 23 日
編集済み: Matt J 2021 年 4 月 23 日
See the FEX submission pgonCorners (which you must Download).
  4 件のコメント
Stefan Lang
Stefan Lang 2021 年 4 月 30 日
I tried it with the attached file and the following code:
vertebra_corners_frontal = corner_prediction(vertebras_frontal,4,100)
pgonCorners is inside corner_prediction. Some vertebras get 2 corner points in one corner. If i adjust angular sample, i even sometimes get only 3 points for each region.
Matt J
Matt J 2021 年 5 月 1 日
Again, it would be good to see a sample image where that occurs.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by