detectEigenFeatures with polygon ROI I am using detectEigenFeatures in the Matlab command to obtain the corner points. This function only can provide the corner points within a rectangular boundary region. But I want to extract the corner points within a polygon. I have thought about using small rectangles in order to obtain a polygon. But it seems time-consuming.
Find the bounding box of the polygon.  Find all corner points within the bounding box.  Iterate over the resulting corner points, test each one to see whether it is within the polygon, and if not, throw it away.

Or, implementing your own code to do corner point detection.