Hi Slovintern,
Expanding on Bruce's posting, you can easily determine which grayscale values map to the selected palette colors using the IMAQ ColorValueToInteger function.
Build a color table using IMAQ ColorValueToInteger, and each unique index to the color table array will yield the corresponding U32 RGB value. (In other words, use the grayscale intensity to index the correspoding color in the table.)
-- Dave