0
$\begingroup$
  • This is Harris corner image of test image:

    enter image description here

  • This is Bitwise watershed segmented image:

    enter image description here

I want to get that Harris corners which will be in segmented part of image(road part).

$\endgroup$
  • $\begingroup$ Can you please add a little bit more information about what you are trying to achieve as, at the moment, it is not exactly clear what you are asking. In the meantime, if you do have the "mask" of the road then all you have to do is query for those harris corners whose pixel locations appear to be within the mask. $\endgroup$ – A_A Jul 3 '16 at 9:19
  • $\begingroup$ My aim is to detect white stripes on road .So I have done Harris Corner Detection and on other hand for pre processing I have done bilateral filter then watershed image segmentation then i have done bitwise_and of image to get that rod part.Now main thing to detect white stripes $\endgroup$ – Shivam Sardana Jul 3 '16 at 10:36
1
$\begingroup$

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

  1. For each Xi,Yi i corners
  2. If mask[Xi,Yi] == 1
  3. keep corner
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.