Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

ArraytoColorimage

Solved!
Go to solution

Using Labview and Vision 2022 Q3, I have no problem using IMAQ ArraytoImage back and forth for grayscale image.  However, when I tried to use the IMAQ ArraytoColorimage, Even I tried some used-to-working solution code snippet, I encountered strange error (Error -1074396080: Invalid Image Type).  Out of desperation, I added a seemed-to-be-redundant "IMAQ Image Cast 2", to force the already-correct image type again (RGB U64), and the code works.  So I wonder if there is some internal incompatibility in Labview/Vision or there might be other reason?  Thanks!

0 Kudos
Message 1 of 3
(249 Views)
Solution
Accepted by topic author puck.ja@aracelibio.com

It seems to be that you have no wire between constant and IMAQ Create, as result you have default U8 image type:

Screenshot 2024-11-07 12.06.29.png

For me everything works without issues:

RGB64Snippet.png

Next time please post code or snippet instead of screenshot.

0 Kudos
Message 2 of 3
(218 Views)

You are absolutely right!

 

I wish Labview has some rudimentary "syntax check", just like any language complier that would catch things, like unmatched parentheses or missing comma, etc.

 

In large 4k screen those wire are barely visible.  Often time, some wires are mysteriously gone when copy and paste with a "boxed selection".  And some function, such as IMAQ Write File 2, does not even need options to be connected.  🙂

puckjaaracelibiocom_0-1730998682810.png

 


But it is my fault not checking every details.  Thanks!

0 Kudos
Message 3 of 3
(204 Views)