06-10-2016 10:46 AM - edited 06-10-2016 10:50 AM
By default, IMAQ Count Objects 2 scans the image from top to bottom. I need it to scan from left to right so that the object indices are displayed in a sorted order from left to right. How can I do that without migrating from Vision Builder as I dont have its license?
06-10-2016 10:55 AM
Hello neelesh314,
It's maybe a stupid question but why don't you reverse your Array of indices?
Regards.
06-10-2016 10:57 AM - edited 06-10-2016 11:01 AM
Hi,
Thanks for your reply!
IMAQ Count doesn't return the indices of particles. It just displays them on the image as an overlay. Since the scanning is from top to bottom, the indices are neither sorted from left to right, nor from right to left. They are just random. The picture below shows how the indices are displayed. The only way I can think of sorting them is to have IMAQ Count scan from left to right but I dont know how to do that.
06-10-2016 10:58 AM
So it was a stupid question 🙂
06-13-2016 11:47 AM
Have you tried playing with the 'Rotation' selection of the 'Search Rect' input into the IMAQ Count Objects VI? I wonder if adjusting it by 90 or 270 degrees may shift the direction this VI searches the ROI.
Would it be possible to simply rotate your image before calling the Count Objects VI?
Opening up the code of the Count Objects VI, it looks like it uses Particle Analysis (in step 😎 to index these objects.
06-13-2016 09:49 PM