What are the specs of your video capture card? Could it be too slow for realtime acquisition and transfer to memory and thus the bottleneck?
Is color needed, can you use colored filters, enhanced lighting, or use narrow band light sources to increase the S/N ratio so software has to do less processing?
Can you do an ROI so that you do not need to process the entire image frame?
Do you have enough pixels/particle for sufficient resolution.
Are you using NI Vision Builder? If so, you can benchmark the execution time of each individual vision function. It is an awesome package to do vision prototyping, fooling around, and generating LV code.
Machine vision is a science and an art with a good measure of experience and luck thrown in.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~