This is an experience-related question about cameras and image processing.
I have a laboratory setup. Under some simplifications it looks like a red ball rolling on a white table (the real setup is shown on the video). A computer vision system should measure X and Y positions of the ball.
For now I use a color camera (with Bayered output) and I find the ball by applying a simple color filter (InRange for R, G, and B components) to the frames. It works, but I would like to increase precision of the measurements.
Question: Would accuracy of measurements be better in a case I used a grayscaled camera with the same parameters as bayer-camera?
I guess it should be so in a perfect case, i.e. when the ball is definitely highlighted on the frames. But in reality brightness filter usually works worse than color filter. On the other side I can change the shooting conditions, because this is laboratory setup. I can change the color of the objects, I can change lighting.