From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid Image Type Error Code -1074396080

Solved!
Go to solution

Hi,

 

I was trying to construct a Vi for tracking an object, such as ball or anything stationary, but my Vi would not work because of the invalid image type error. The error occurs in between the "IMAQ Extract Single Color Plane" and "IMAQ Threshold". I have went through other "invalid image type" error related post but I am kind of new to Labview so I cannot fully understand the explanations on these posts. The screenshots includes the block diagram of my vi, front panel and the error message. It will be really great if anyone can help me out! Thank you!

Download All
0 Kudos
Message 1 of 10
(6,714 Views)
Solution
Accepted by chocho12

It seems like you are extracting Red plane from the grey image which is violating the rule. 🙂

Make sure you input the type of image that you are giving to 'IMAQ Cast Image VI'. This will solve your issue.

Note: Its better if you would send a VI attachment instead of screenshot if the VI is not that big or confidential!ImgType.PNG

Message 2 of 10
(6,684 Views)
Solution
Accepted by chocho12

I don't get the idea of typecasting RGB(U32) image to RGB(U32)!

-I feel it's redundent and can be simply removed, since there is no specific use i can see in your code.

Thanks
uday
Message 3 of 10
(6,675 Views)

 

It is solved! Thank you for helping me out!!:)

0 Kudos
Message 4 of 10
(6,659 Views)

Hi, my english is not very good, so I try explain my problem.

 

I have the same problem. In two programs in "IMAQ Cast Image VI" I configure with Grayscale U8, then one of the two programs works (the program's name is LeCroy...), but in the other it is not works (the program's name is gen-osci4).

 

attach the programs. 

Thank you.

Download All
0 Kudos
Message 5 of 10
(6,416 Views)

-I would suggest you to create new thread.

-The code is too big to understand. Please try to make use of Creating SubVIs http://www.ni.com/white-paper/7593/en/

- And use Project to bind all subVIs together: https://zone.ni.com/reference/en-XX/help/371361J-01/lvconcepts/using_labview_projects/

 

-What cameras are you using? Grayscale or Color?

-IMAQ Extract Single Color plane requires color image as input and extracts one single plane and the output result would be Grayscale image.

-IMAQ Cast Image is used to convert one image type another. Here your Image source is i believe grayscale and you are trying to convert to RGB(U32) any reason why?

-Please create a SubVI of only camera portion and post with what you want to achieve and error.

Thanks
uday
Message 6 of 10
(6,395 Views)

I attached the program´s image, it is belonging to the function camera with the error.

The cameras sends image in grayscale, the marks of the cameras are Pixelink and PointGrey.

 

Thank for your help!!

Download All
0 Kudos
Message 7 of 10
(6,391 Views)

If the camera sends the grayscale image then what is the use of IMAQ Extract Color plane? Simply delete it.

 

Edit: Next time while uploading VIs please atleast clear the data in graphs and charts and then upload so that it won't be in MBs.

Thanks
uday
Message 8 of 10
(6,387 Views)

Hi !!

 

I solved the problem with your help. Thaks. But now, when I select the rectangle of the image, give the rectangle' distance 0. I don't know why.

0 Kudos
Message 9 of 10
(6,361 Views)
Start new thread in specific board: http://forums.ni.com/t5/Machine-Vision/bd-p/200
-Post VI along with sample images
-Without sample images we can't decide why the function is not working.
Thanks
uday
0 Kudos
Message 10 of 10
(6,350 Views)