Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Change palette type to Color palette

Hello,
I am trying to snapshot the picture with ROI and color palette. I am using IMAQ Merge Overlay for merge the ROI, but I have no idea how to merge the color palette. I don't know how to change palette type to color palette.

Thank you very much for your help.

Tomas
0 Kudos
Message 1 of 4
(3,241 Views)

Tomas,


I am not exactly sure what you are asking.  The IMAQ Merge Overlay function will take any overlays attached to the image and merge them with the pixel values of the image, doing a destructive overlay.  This function will always return an RGB image, if the input image is an 8 bit grayscale image, it will cast it to an RGB image and then put the overlay into the pixel values of the image with the overlay’s color.  Please clarify your question a little further if you need more information.

Regards,
Luke H

0 Kudos
Message 2 of 4
(3,228 Views)
Hello, I am trying to use input Color palette of IMAQ Merge Overlay function. I need to save picture with shown ROI and selected Color palette. I need to know how to change color palette type to color palette to make it as input of the IMAQ Merge Overlay function.

Tomas
0 Kudos
Message 3 of 4
(3,215 Views)

It sounds like you are displaying an 8 bit grayscale image using a color palette, and you want to use that color palette with Merge Overlay.

You can create the palette for the input to Merge Overlay using IMAQ GetPalette vi, which is found under the Vision Utilities -> External Display menu.  You can either specify the palette that you want it to generate, or you can use a property node of the image display to get the currently selected palette number and use that as the input to IMAQ GetPalette.

Bruce

Bruce Ammons
Ammons Engineering
0 Kudos
Message 4 of 4
(3,210 Views)