red=gamma*pixel->red;
green=gamma*pixel->green;
blue=gamma*pixel->blue;
- if (pixel->colorspace == GRAYColorspace)
- return(red);
if (pixel->colorspace == sRGBColorspace)
return(0.212656f*red+0.715158f*green+0.072186f*blue);
red=EncodePixelGamma(red);
red=gamma*pixel->red;
green=gamma*pixel->green;
blue=gamma*pixel->blue;
- if (pixel->colorspace == GRAYColorspace)
- return(red);
if (pixel->colorspace != sRGBColorspace)
return(0.212656f*red+0.715158f*green+0.072186f*blue);
red=DecodePixelGamma(red);
red=gamma*pixel[image->channel_map[RedPixelChannel].offset];
green=gamma*pixel[image->channel_map[GreenPixelChannel].offset];
blue=gamma*pixel[image->channel_map[BluePixelChannel].offset];
- if (image->colorspace == GRAYColorspace)
- return(red);
return(0.212656f*red+0.715158f*green+0.072186f*blue);
}
red=gamma*pixel[image->channel_map[RedPixelChannel].offset];
green=gamma*pixel[image->channel_map[GreenPixelChannel].offset];
blue=gamma*pixel[image->channel_map[BluePixelChannel].offset];
- if (image->colorspace == GRAYColorspace)
- return(red);
if (image->colorspace != sRGBColorspace)
return(0.212656f*red+0.715158f*green+0.072186f*blue);
red=DecodePixelGamma(red);