Try a white circle on a black background. It will work better. Another option is to invert your current image.
The white pixels carry the most weight (255) when using IMAQ Centroid. The black pixels carry the least weight (0). Right now, you are calculating the centroid of the white strip around your circle. By inverting the image, you will calculate the centroid of the circle.
The best results for IMAQ Centroid are obtained with a white object on a black background. If the lighting is not even or the color/brightness is not even, you will get shifts in your centroid away from the actual center.
I think your results with blob analysis will be better and more consistant than IMAQ Centroid. Another option, if your blobs are all circles, is to us
e Find Circular Edge once you know their approximate location. This uses edge finding to very accurately determine the position of a circular object.
Bruce
Bruce Ammons
Ammons Engineering