Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

using count objects vi

hi everyone, i have this little question,.

 

can I control where i want the objects to be?

 

ok,. i want to know if  is possible to make it....

Message 1 of 7
(4,329 Views)

Hello,

 

I dont't understand your question.

 

Do you mean if it is possible to only count objects in a specific region on your image?

If this is the case, you can use IMAQ count objects to specify the "search rect" input (you can extract the search rect from the ROI on your image):

 

Search Rect (entire image) specifies the rectangular region of the image where the objects are located. The default value specifies a search on the entire image.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 2 of 7
(4,323 Views)
No, I already have the objects detected, but i want to control wich is 0 and wich is 1 and so on..
0 Kudos
Message 3 of 7
(4,319 Views)

If you are binary thresholding, you can have only two values (0 and 1). So, after the detection you would like to apply some sort of filter, that supresses some objects and not others? Are you going to do this manually, or will it be based on some sort of criteria?

Have you looked at the IMAQ Particle filter?

 

If you want to control which detected objects to supress, you need to replace the bounding rectangle of your detected object with an image of equal size with values 0. You can use IMAQ ImageToImage for this.

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 4 of 7
(4,316 Views)
Yes i have done supressed some objects and i only have 6 objects that i need, i have done it manually, i used IMAQ Particle filter too, im gonna try to see if i can do something with IMAQToImage VI,

So i still want to know if i can set wich one I need,, lets say : i want object 0 to be object 3, you think is possible?

Thank you so much for your time...
Greetings from Mexico..
0 Kudos
Message 5 of 7
(4,307 Views)

Hello,

 

with what criteria do you want to use to sort the objects? Based on their area, position, etc...? Or do you just want to sort them manually (although I do not understand why do you want to sort them manually)? If you want to sort them manually, then just index the output arrray of clusters and reorder them. For example:

 

Example_VI_BD.png

 

Best regards,

K


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
0 Kudos
Message 6 of 7
(4,287 Views)
With position criteria, im going to try iy.. thnx..
0 Kudos
Message 7 of 7
(4,280 Views)