This is Harris corner image of test image:
This is Bitwise watershed segmented image:
I want to get that Harris corners which will be in segmented part of image(road part).
You have a mask of the road were pixels of the road have value 1 and non road pixels as value 0. Also you have a list of Harris corners were each corner as a coordinate Xi,Yi