Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Annulus ROI with IMAQ Count Objects

Solved!
Go to solution

Hello,

 

I need to use an annulus ROI with imaq count objects vi function.

As far as I see, this function only works with rectangles. But sometimes I have to define the ROI as an annulus.

I know this is possible on VBAI with detect objects function. But I could not find a solution on Labview.

Is there any workaround that I can use annulus ROIs to find objects/blobs?

 

Below picture is just an example on VBAI. I would like to do the same on Labview. 

sevincom_0-1613213205207.png

 

0 Kudos
Message 1 of 4
(1,641 Views)

If you just need to count objects, you can unwrap the image, and then apply your choice of tools.

 

IMAQ Unwrap VI - NI Vision 2019 for LabVIEW Help - National Instruments

 

Let me know if there are questions!

 

Good luck.

 

🙂

Message 2 of 4
(1,605 Views)
Solution
Accepted by sevincom

You can also use IMAQ Convert ROI to Annulus.vi follow by IMAQ ROI to mask2.vi.

Those two functions will do the same like what you have in VBAI

 

Thanks - Amit

Amit Shachaf
Message 3 of 4
(1,586 Views)

Hi,

 

IMAQ Count Objects 2.vi is not protected. Possible solution could be to use mask the image (Use ROI to Mask) and do particle analysis. You can see the see the block diagram of the VI for reference.

 

-Hit KUDOS for Thanks

 

Rahul

Message 4 of 4
(1,565 Views)