This questions is in conjugation with this one here!

Canny edge detector gives ids of pixels in an image. Not the locations of the edges. To be specific, after all it should be an edge between two pixels. Any implementation that actually gives arcs not pixels?

One solution i can make is that if i have a pixel, i can simply take the bottom edge and right edge for consistency but it might disconnect my feature. Edit: Edge is referred to an arc between 2 pixels. Something smarter? Thanks.

  • $\begingroup$ I'm not sure I understood your question: IIRC the Canny edge detector uses a Sobel operator underneath, which is essentially a central difference - i.e. the edges are centered on pixels, not between pixels. $\endgroup$ – Niki Estner Jun 26 '12 at 16:12
  • $\begingroup$ I didnt know its sobel based. Still I need arcs between pixels not 'on' the pixels. I gotta way i guess. because i specifically need edges along the arcs. $\endgroup$ – Naresh Jun 27 '12 at 10:03
  • $\begingroup$ Are you trying to get curves or contour chain (in the form of "chain code", or linked lists of edge pixels)? If so, please edit your question. $\endgroup$ – rwong Jun 30 '12 at 7:04

Your Answer

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

Browse other questions tagged or ask your own question.