LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use IMQA RemoveParticle and IMAQ ComplexParticle for 16-bit image source

I have a 16-bit image from Spiricon Camera, I am trying to do some iamgine process. However, the IMAQ RemoveParticle.vi and IMAAQ ComplexParticle.vi require 16-bit image source. I have tried to Image cast Image to convert my 16-bit image into 8-bit image source, but the funny thing is IMAQ RemoveParticle shows error when it is called for the second time. (When it is called for the first time, there is no error and it works fine). The error message is Image size is not large enough to be processed. I have checked the image size I am passing through, both are same size: 480X512.

Could those whoa re experts in the forum kindly offers your help. Your kindly help are greatly appreciated. Thanx in advance.

William
0 Kudos
Message 1 of 5
(3,184 Views)
Hello.

Sounds like you are having some issues with the IMAQ RemoveParticle.vi (and other particle VIs) related to image types.

Just to clarify, all of the particle VIs require an 8-bit binary image. These images will result if you take any monochrome or color image and perform a threshold on the image. Additionally, you should always wire an image (from IMAQ Create.vi) into the Image Dst input of the processing VIs to give the operations a place to copy into. This is especially important for a binary threshold.

The errors that you are getting are likely related to this issue. Refer to the 'Particle Analysis Example' that ships with LabVIEW and Vision, which can be found here:

Examples\Vision\2. Functions\Binary Analysis\Particle Analysis Example.vi

Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog
0 Kudos
Message 2 of 5
(3,172 Views)
Dear Colin,

Thank you very much for your reply.

I have tried, but I still get the same error message. Basically, I use IMAQ create.vi to create a 16-bit img0 and 8-bit img1 respectively. My 16-bit image is processed by IMAQ MultiThreshold.vi and then cast to 8-bit image by IMAQ image cast to image.vi and then linked to IMAQRemoveParticle.vi. I have tried to link img1 into the Imag Dst input for IMAQRemoveParticle.vi, unfortunately, I still had the same error message and the phenomenon is exactly like before. First call is working fine, but after that error happens.

Once again, your kindly help are greatly appreciated.

William
0 Kudos
Message 3 of 5
(3,167 Views)
Hello again.

I am still a little confused about exactly what is happening. If you have a simple VI that reproduces the issue then go ahead and post it up and we can all take a look. Also, be sure to let us know what your SW versions are (NI-IMAQ, IMAQ Vision, and LV).

Regards,
Colin C.
Applications Engineering
Colin Christofferson
Community Web Marketing
Blog
0 Kudos
Message 4 of 5
(3,158 Views)
Dear Colin,

I have solved the problem by doing cast by myself, instead of using IMAQ image to image, I right shifted my raw image data 8 bit and then use IMAQ array to image.vi.

Thank you very much colin, and I really appreciate your kindly help and valuable time.

All the best,

William
0 Kudos
Message 5 of 5
(3,154 Views)