LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Color thresholding simultaneously multiple blobs/particles of AVI

Solved!
Go to solution

Hello All!

I am trying to color threshold an AVI file which has 3 particles/blobs (blobs of color-yellow, orange and blue). So, that I can accomplish blob extraction and detection. Each of the blob has different color thresholds so that it gets converted from a RGB Image to a binary image. Therefore I made the RCB selectors into a cluster and then put them into an array (array0-RGB Color threshold for blob 1, array1- RCG Color threshold for Blob2 and similarly with blob3). The AVI should be thresholded simultaneously for all the 3 blobs in each Frame of the AVI. But, when I do this, the threshold image is blank and it throws me an error:

Error -1074396120 occurred at IMAQ ColorThreshold

Possible reason(s):

IMAQ Vision:  Not an image.

 

Can someone help me with this?

 

0 Kudos
Message 1 of 5
(3,079 Views)

Did you do a Google search of the error code? 

aputman
0 Kudos
Message 2 of 5
(3,053 Views)

Yes I did. I couldn't find any relevant error cause. Therefore, I have attached the Code which might be wrong in some way.

0 Kudos
Message 3 of 5
(3,037 Views)
Solution
Accepted by topic author enthusiast4

After first iteration of your thresholding code, you are disposing the image hence you get the error.

-Once you have thresholded the image it becomes binary and you cannot use the same image again for Color threhold. If you want original image not be overwritten please use additional buffers and connect to Image Dst.

-You can use some of debugging techniques(Breakpint, Highlight Execution) mentioned here to identify the problems: http://www.ni.com/getting-started/labview-basics/debug

Thanks
uday
Message 4 of 5
(3,023 Views)

@udka wrote:

After first iteration of your thresholding code, you are disposing the image hence you get the error.

-Once you have thresholded the image it becomes binary and you cannot use the same image again for Color threhold. If you want original image not be overwritten please use additional buffers and connect to Image Dst.

-You can use some of debugging techniques(Breakpint, Highlight Execution) mentioned here to identify the problems: http://www.ni.com/getting-started/labview-basics/debug


Yes you are right. I removed the IMAQ dispose and now ist not throwing any error. Also, I have used additional buffer and connected it to Image Dst of IMAQ Color Threshold VI. Hence, I can see the thresholded Image of the particles now.

 

0 Kudos
Message 5 of 5
(3,019 Views)