LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ RemoveParticle VI

I would like to know exactly what this VI does. I need to implement something similar on the FPGA.

 

I know people get very curious before answering a question, so here goes: I need to clean up the image quickly. I am able to do an erosion function on the FPGA on the image before sending it to the host. Now, erode is not the same as RemoveParticle. When I tried RemoveParticle vi on the original image, it does exactly what I want.

0 Kudos
Message 1 of 6
(2,570 Views)

Hi elsayed3,

 

For greater detail, you could also reference the detail help for the VI found here.

 

Hope this helps,

Allison M.
Applications Engineer
National Instruments
ni.com/support
0 Kudos
Message 2 of 6
(2,550 Views)

Thanks for the links. I had seen them before, they're not exactly what I'm looking for. I'm looking to recreate this VI from scratch. This vi calls a dll function, and I can't see what the function does. I would like to replicate this function on the FPGA.

0 Kudos
Message 3 of 6
(2,546 Views)

Perhaps we can think about this together. Thinking out loud here...

 

We know "The IMAQ RemoveParticle function filters or removes the particles below a certain pixel size. "

And we know that the function is based on 2 erosions. I can do an erosion on the FPGA.

 

Image -> erosion 1 -> erosion 2 -> fcn -> out image

 

'fcn' would take as inputs 'Image' and the output of 'erosion 2' ?

What would the fcn be? 

 

I'll think about these questions and let you know if I get to somewhere.

0 Kudos
Message 4 of 6
(2,541 Views)

Any help? Should I create a service request ticket?

 

I tried a bunch of morpholgy options, for example, erode, dilate, erode, dilate (or 2x open). It does some noise reduction but it changes the image too much. Ideally, I would have access to the source code of the IMAQ RemoveParticle function, but if not, perhaps someone from NI can provide me with the algorithm behind it? The IMAQ RemoveParticle function manages to remove the speckles without modifiying the non-speckle parts of the image.

0 Kudos
Message 5 of 6
(2,531 Views)

Hi elsayed3,

 

This code is protected intellectual property and it is National Instruments' policy not to share their protected source code. We do not have access to the code within the .dll file so we do not know the algorithm behind removing the speckles.

 

 

Allison M.
Applications Engineer
National Instruments
ni.com/support
0 Kudos
Message 6 of 6
(2,517 Views)