detectEigenFeatures with polygon ROI
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.