03-13-2018 07:36 AM - edited 03-13-2018 07:41 AM
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?
Solved! Go to Solution.
03-13-2018 08:22 AM
Did you do a Google search of the error code?
03-13-2018 10:29 AM
Yes I did. I couldn't find any relevant error cause. Therefore, I have attached the Code which might be wrong in some way.
03-14-2018 01:24 AM
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
03-14-2018 05:33 AM - edited 03-14-2018 06:03 AM
@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.