フィルターのクリア

how to get the folded image of a binary mask image...

2 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2015 年 5 月 8 日
編集済み: Elysi Cochin 2015 年 5 月 15 日
i wanted to invert a image along its majorAxis, and get the region difference in upper and lower half region... please do help me...
  2 件のコメント
Thomas Koelen
Thomas Koelen 2015 年 5 月 8 日
Did you not ask this question yesterday?
Image Analyst
Image Analyst 2015 年 5 月 8 日
She did here in this question, but then she edited the question away to something way different.

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

採用された回答

Image Analyst
Image Analyst 2015 年 5 月 8 日
There's nothing like that in MATLAB. You'll have to write it from lower level functions. Here's how: Use regionprops() to find the orientation. Then use imrotate to rotate the image down. Then it's a simple matter of getting the top half line and XORing it with the bottom half line. I've attached some demos that might help you.
  2 件のコメント
Image Analyst
Image Analyst 2015 年 5 月 11 日
Supply the original image so I can run your code. Also, what do you want to do if the outlines overlap because one is not always larger than the other side?
Image Analyst
Image Analyst 2015 年 5 月 11 日
Why are the other two not correct? Why do you think the line does not go along the major axis? Keep in mind that the major axis does not necessarily lie along a line between the two farthest points. Just think if the blob was shaped like an L or an F - where do you think the major axis would lie? Not along the line between the two farthest points.

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

その他の回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by