Error -1074396080 at IMAQ Threshold

Updated Oct 10, 2018

Reported In

Driver

  • NI-IMAQ
  • NI-IMAQdx

Issue Details

I am using IMAQ functions and IMAQdx functions to read an image from my camera, and am receiving this error:  

Error -1074396080 occured at IMAQ Threshold.
Possible reason(s):
IMAQ Vision: Invalid image type.


I am trying to do particle analysis on multiple images and after modifying the Particle Orientation Example.vi from the Example Finder I am now receiving the error below.

Solution

You will get an:

Invalid image type error

This error can occur in circumstances when Image types do not match. 

For example, this error occurs when using the incorrect type of thresholding VI for the specific image type.

It is important to remember the following while performing particle analysis:

  1. If you have a colored image, you need to use IMAQ Color Threshold.vi before you do particle analysis.
  2. If you have a monochrome image you need to use IMAQ Threshold.vi before you do particle analysis.
  3. If you have a color image and IMAQ Threshold.vi then you need to use IMAQ Cast.vi to convert the 16 bit image to a 8 bit image before performing thresholding using the IMAQ Threshold.vi.

Color Image Thresholding VI Snippet: 


Greyscale Image Thresholding VI Snippet:


You may also receive this error when using a different image type from your IMAQdx Grab.vi and the IMAQ Create.vi. In order to make sure that you are using the same image type, use the IMAQ Cast Image.vi. Casting the image to the same type will ensure compatibility between your IMAQdx camera image and your IMAQ Image functions. 

 

 

WAS THIS ARTICLE HELPFUL?

Not Helpful