MATLAB: I have a set of (x,y) coordinates that enclose a irregular shape, I want to extract all the points that are inside that particular region. How should i approach this.

image processingImage Processing Toolbox

Basically I have an image in which I have marked certain regions, I want to know about all the points inside that region.

Best Answer

There are an infinite number of points inside any non-degenerate polygon (for degenerate polygons, you need to define "inside" with some care to boundary conditions.)
If you are asking about matrix coordinates then poly2mask() and then if you want you can extra the content of the matrix according to the mask.