Hi Haifei,
I took a look at your image, and set up an inspection on my machine. I was able to do the analysis in under 2ms. I started with a threshold to make the image binary. Then I eroded the image to remove many of the speckles. Last, I found circular edges. It found the center at -358, 1569 (where the origin is at the top left of the image).
What are you running on? Is it a real-time PC? What speed is the processor?
You can also test this in CVI to see if it is faster by going to
Tools » Generate C Code... I don't expect it to be significantly faster in CVI, but it is worth looking into. If you decide that you do want to use CVI, this is a possible option, but you will have to create a .DLL in CVI to be called by LabVIEW.
Let me know if you need any further assistance.
Regards,
Brandon M.
Applications Engineer
National Instruments