gets the color space of an MImage.

Details and OptionsDetails
  • Used in C/C++ code in a library function called from Mathematica.
  • Returns one of MImage_CS_Gray, MImage_CS_RGB, MImage_CS_HSB, MImage_CS_CMYK, MImage_CS_XYZ, MImage_CS_LAB, MImage_CS_LCH, MImage_CS_LUV, or MImage_CS_Automatic.
  • If the input MImage is invalid, MImage_CS_Undef is returned.
  • Examples

    Basic Examples  (1)

    This checks that this is an RGB MImage:

    MImage I0;
    colorspace_t cs;
    cs = libData->MImage_getColorSpace(I0);
    if (cs != MImage_CS_RGB) {