I have attached the image here, in this, the black color region is background, white region is region of interest (roi). red points are inside the region and yellow points are outside the regions. Programmatically (using matlab code), how do i find whether a given point is inside or outside the roi. (color of points can be ignored, it is used just for explanation).
Thanks in advance.