Get the masks of the region between two lines
4 views (last 30 days)
Show older comments
Here is an image where two lines are drawn. I want to generate a binary mask for the region enclosed by the two lines. Is there a specialized function for achiving this purpose?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/279459/image.png)
1 Comment
Answers (1)
Jyotsna Talluri
on 30 Mar 2020
Create a polygonal ROI on the image by specifying the vertices of the ROI using the position property, or you can draw the ROI interactively using draw function. Refer to the below documentation links for creating ROI.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!