Lines Matching refs:colormap
738 Apply transfer function to colormap.
743 luma=0.21267f*image->colormap[i].red+0.71526*image->colormap[i].green+
744 0.07217f*image->colormap[i].blue;
745 image->colormap[i].red=luma+color_correction.saturation*cdl_map[
746 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].red))].red-luma;
747 image->colormap[i].green=luma+color_correction.saturation*cdl_map[
748 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].green))].green-luma;
749 image->colormap[i].blue=luma+color_correction.saturation*cdl_map[
750 ScaleQuantumToMap(ClampToQuantum(image->colormap[i].blue))].blue-luma;
907 Contrast enhance colormap.
916 red=(double) image->colormap[i].red;
917 green=(double) image->colormap[i].green;
918 blue=(double) image->colormap[i].blue;
920 image->colormap[i].red=(MagickRealType) red;
921 image->colormap[i].green=(MagickRealType) green;
922 image->colormap[i].blue=(MagickRealType) blue;
1183 Stretch-contrast colormap.
1190 image->colormap[j].red=stretch_map[GetPixelChannels(image)*
1191 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].red))+i];
1196 image->colormap[j].green=stretch_map[GetPixelChannels(image)*
1197 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].green))+i];
1202 image->colormap[j].blue=stretch_map[GetPixelChannels(image)*
1203 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].blue))+i];
1208 image->colormap[j].alpha=stretch_map[GetPixelChannels(image)*
1209 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].alpha))+i];
1646 Equalize colormap.
1654 image->colormap[j].red=equalize_map[GetPixelChannels(image)*
1655 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].red))+
1663 image->colormap[j].green=equalize_map[GetPixelChannels(image)*
1664 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].green))+
1671 image->colormap[j].blue=equalize_map[GetPixelChannels(image)*
1672 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].blue))+
1680 image->colormap[j].alpha=equalize_map[GetPixelChannels(image)*
1681 ScaleQuantumToMap(ClampToQuantum(image->colormap[j].alpha))+
1838 Gamma-correct colormap.
1842 image->colormap[i].red=(double) gamma_map[ScaleQuantumToMap(
1843 ClampToQuantum(image->colormap[i].red))];
1845 image->colormap[i].green=(double) gamma_map[ScaleQuantumToMap(
1846 ClampToQuantum(image->colormap[i].green))];
1848 image->colormap[i].blue=(double) gamma_map[ScaleQuantumToMap(
1849 ClampToQuantum(image->colormap[i].blue))];
1851 image->colormap[i].alpha=(double) gamma_map[ScaleQuantumToMap(
1852 ClampToQuantum(image->colormap[i].alpha))];
1855 image->colormap[i].red=QuantumRange*gamma_pow(QuantumScale*
1856 image->colormap[i].red,1.0/gamma);
1858 image->colormap[i].green=QuantumRange*gamma_pow(QuantumScale*
1859 image->colormap[i].green,1.0/gamma);
1861 image->colormap[i].blue=QuantumRange*gamma_pow(QuantumScale*
1862 image->colormap[i].blue,1.0/gamma);
1864 image->colormap[i].alpha=QuantumRange*gamma_pow(QuantumScale*
1865 image->colormap[i].alpha,1.0/gamma);
2429 Level colormap.
2432 image->colormap[i].red=(double) ClampToQuantum(LevelPixel(black_point,
2433 white_point,gamma,image->colormap[i].red));
2435 image->colormap[i].green=(double) ClampToQuantum(LevelPixel(black_point,
2436 white_point,gamma,image->colormap[i].green));
2438 image->colormap[i].blue=(double) ClampToQuantum(LevelPixel(black_point,
2439 white_point,gamma,image->colormap[i].blue));
2441 image->colormap[i].alpha=(double) ClampToQuantum(LevelPixel(black_point,
2442 white_point,gamma,image->colormap[i].alpha));
2588 Level colormap.
2591 image->colormap[i].red=(double) LevelizeValue(image->colormap[i].red);
2593 image->colormap[i].green=(double) LevelizeValue(
2594 image->colormap[i].green);
2596 image->colormap[i].blue=(double) LevelizeValue(image->colormap[i].blue);
2598 image->colormap[i].alpha=(double) LevelizeValue(
2599 image->colormap[i].alpha);
3231 Modulate image colormap.
3233 red=(double) image->colormap[i].red;
3234 green=(double) image->colormap[i].green;
3235 blue=(double) image->colormap[i].blue;
3295 image->colormap[i].red=red;
3296 image->colormap[i].green=green;
3297 image->colormap[i].blue=blue;
3474 Negate colormap.
3477 if ((image->colormap[i].red != image->colormap[i].green) ||
3478 (image->colormap[i].green != image->colormap[i].blue))
3481 image->colormap[i].red=QuantumRange-image->colormap[i].red;
3483 image->colormap[i].green=QuantumRange-image->colormap[i].green;
3485 image->colormap[i].blue=QuantumRange-image->colormap[i].blue;
3737 leaving the image (or colormap) unmodified. This appears to be safe because
3819 Sigmoidal-contrast enhance colormap.
3830 image->colormap[i].red=(MagickRealType) ScaledSig(
3831 image->colormap[i].red);
3833 image->colormap[i].green=(MagickRealType) ScaledSig(
3834 image->colormap[i].green);
3836 image->colormap[i].blue=(MagickRealType) ScaledSig(
3837 image->colormap[i].blue);
3839 image->colormap[i].alpha=(MagickRealType) ScaledSig(
3840 image->colormap[i].alpha);
3846 image->colormap[i].red=(MagickRealType) InverseScaledSig(
3847 image->colormap[i].red);
3849 image->colormap[i].green=(MagickRealType) InverseScaledSig(
3850 image->colormap[i].green);
3852 image->colormap[i].blue=(MagickRealType) InverseScaledSig(
3853 image->colormap[i].blue);
3855 image->colormap[i].alpha=(MagickRealType) InverseScaledSig(
3856 image->colormap[i].alpha);