LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to analyze an image using IMAQ.

Solved!
Go to solution

hello

 

I want to make an image analysis program.

 

I want to compare with IMAQ, but I want to load it into IMAQ without saving the file.

 

Is there a way to directly compare data without leaving a file?


If you look at the attached file, there is a screen capture data format.

0 Kudos
Message 1 of 3
(614 Views)
Solution
Accepted by ndtsystem

If you have a 24-bit or 32-bit RGB image (without color palette), you can do something like that:

raphschru_1-1687175376940.png

 

If you have other types of image, like 8-bit color using a color palette, you may take into account the other outputs "8-bit pixmap" or "4-bit pixmap", "1-bit pixmap" and "Colors" of the VI "Unflatten Pixmap":

raphschru_2-1687178782072.png

Finally if the image is in grayscale, you would have to adapt the code again and maybe turn U8 values into RGB values…

 


On the other hand, if you accept having a temporary file (deleted right after), that is much simpler and independent from the image format since "IMAQ ReadFile" can read png files from (almost) any format and turn it into a RGB U32 image:

raphschru_1-1687180635854.png

 

Regards,

Raphaël.

 

Message 2 of 3
(549 Views)

thank you. It's solved thanks. 😄

0 Kudos
Message 3 of 3
(519 Views)