Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Finding subpixel position of fiducial shapes (Plus, Dot, Square)

Hi All,

New to OpenCV - Actually, so new that I haven't tried to run it .. yet. But wanted to figure out if I can use OpenCV for this before going down the wrong path.

I have a grayscale image, about 2000x1500 pixels, with a small shape (about 200x200 pixels) somewhere in the image. The shape is either a square, dot or plus. The trickiness is that the shape is "fuzzy" (out of focus) and contrast is low. I cannot get a better image of the shape, so crisp edges are definitely out.

What I need is an algorithm that (as quickly as possible) detects the center position of this fiducial shape and reports that back to my code. My preference is C++.

Any thoughts on whether this can (simply / easily) be done with OpenCV, and if so, how?

Thanks!

Finding subpixel position of fiducial shapes (Plus, Dot, Square)

Hi All,

New to OpenCV - Actually, so new that I haven't tried to run it .. yet. But wanted to figure out if I can use OpenCV for this before going down the wrong path.

I have a grayscale image, about 2000x1500 pixels, with a small shape (about 200x200 pixels) somewhere in the image. The shape is either a square, dot or plus. The trickiness is that the shape is "fuzzy" (out of focus) and contrast is low. I cannot get a better image of the shape, so crisp edges are definitely out.

What I need is an algorithm that (as quickly as possible) detects the center position of this fiducial shape and reports that back to my code. My preference is C++.

Any thoughts on whether this can (simply / easily) be done with OpenCV, and if so, how?

Thanks!

-- Edit:

I could not post a reply yet, so here's some more details: We're currently using Sherlock by Dalsa for this process, and need to move to Realtime on C++, hence the need to evaluate OpenCV. When looking through documentation and tutorials, it wasn't abundantly clear that OpenCV had simple functionality to detect shapes like I mentioned and give me subpixel coordinates of its center. All I was able to find were correlation-based algorithms and complex face-recognition stuff. Neither one would be applicable... Based on eshirima's suggestions, it looks like it will be doable though. I'll look into those more.

I'll try to add examples later today or tomorrow so you guys can weigh in if the contrast ratio would present a problem.

And to clarify -- no, I am not looking for others to do the work. Just trying to evaluate if I should consider OpenCV or not.

Thanks!