フィルターのクリア

dividing an image into two with the aid of a line

1 回表示 (過去 30 日間)
elena
elena 2013 年 4 月 29 日
コメント済み: Image Analyst 2017 年 4 月 8 日
hello! I have not much experience with matlab and I have a question! I wonder if drawing a line on an image, the image can be divided into two parts from that line and represent each of them separately! thank you very much to all

採用された回答

elena
elena 2013 年 4 月 30 日
I have an image and its centroid and I plotted lines passing through the centroid. And I wonder if it would be possible to represent separately each of the parts that are on either side of the line to work with them separately. You can get to the representation of each of
  15 件のコメント
Elysi Cochin
Elysi Cochin 2015 年 5 月 7 日
編集済み: Elysi Cochin 2015 年 5 月 7 日
what if, i have the (x1,y1) and (x2,y2) points... where to edit the code.... how to get the lineMask please do help sir...
Image Analyst
Image Analyst 2015 年 5 月 7 日
If you have a large binary blob and you want to burn a line into it, see my attached demo.

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2013 年 4 月 29 日
How do you want to handle it if the line starts and stops within the image? Do you want to extend it until it hits the edge of the image? And then take the bounding box of each quadrilateral and zero out parts on the "wrong" side of the line?
  6 件のコメント
waffle
waffle 2017 年 4 月 8 日
can u help me how to do that
Image Analyst
Image Analyst 2017 年 4 月 8 日
What information do you have so far? Do you at least have the formula or endpoints of the line? Or do you not even have that? If not, then what do you need to do to get that? Do you need to develop the ENTIRE image segmentation algorithm right from the very start after you call imread()? (I hope not.)

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

Community Treasure Hunt

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

Start Hunting!

Translated by