MATLAB: How to get the mask of the region between 2 lines

image processing

having (x1,y1) and (x2,y2) coordinate value, how to get the mask region between the 2 lines

Best Answer

As you have two lines in hand......you should be knowing coordinates of those lines....use inpolygon to get the coordinates which lie inside the closed region.
Related Question