06-18-2023 11:58 PM
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.
Solved! Go to Solution.
06-19-2023 08:23 AM
If you have a 24-bit or 32-bit RGB image (without color palette), you can do something like that:
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":
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:
Regards,
Raphaël.
06-19-2023 06:50 PM
thank you. It's solved thanks. 😄