11-21-2020 12:13 PM
I am attempting to perform spot tracking for a beam aiming system. I need help with the "IMAQ Particle Analysis' function. I reviewed the examples, and none seem to demonstrate extracting the XY pixel location [Centroid] for a detected particle.
I coded an still image of my beam - and the particle analysis reporting does not correlate to the clearly 'seen' location of the beam - i.e. the only singular particle of the sample image. Some of the reporting seems correct - Hydraulic diameter - but the XY boundary - keep returning the entire image field boundaries?.
I have attached my test VI, a BMP of the captured image. Any help is appreciated. My Vision Acquisition, Analysis license is activated.
11-21-2020 05:49 PM
if it's reasonable to convert the image into a binary, easy to filter out outliers, and use the same tool to find the center of mass of the particle.
Does this make sense?
11-21-2020 06:41 PM
If the particle detection function worked at all...I would invest the time.
Looking at the image, it's pretty much binary now.
There has to be something wrong in how I am using the function.
This is the help I am looking for.
11-22-2020 06:28 PM
The image has to be binary.
11-22-2020 06:31 PM
Thanks! Yes I figured that out. Odd...there is not error returned from the function, and odder still it reports 'detecting' one particle...
I will upload the vi I posted with the binary conversion..
Thanks, Jack
11-22-2020 06:31 PM
I wrote a more detailed explanation, but the system decided to kick me out, and I'm too tired to write it agin. But I have attached a VI that does a fair job of locating the center of mass..
Oh, Calibrated values will always be the same as pixel values, unless you have a calibrated image.
Cheers
Robert
11-28-2020 07:49 PM
Robert,
Thanks!....I've had the same issue with writing a long Forum reply to be booted off a refresh.
Jack
11-28-2020 08:00 PM
I hope the code makes sense. .Feel free to bug me if you have more questions.
Cheers
Roebrt