設置raster對象的指定波段的顏色解釋類型。

語法

raster ST_SetColorInterp(raster rast, integer band_sn, ColorInterp interp);

參數(shù)

參數(shù)名稱 描述
rast raster對象。
band_sn 指定的波段序號,從0開始。
interp interp枚舉值。

描述

interp枚舉值及其解釋:

說明
Undefined 顏色解釋類型未定義。
GrayIndex 關聯(lián)灰度顏色表。
RGBIndex 關聯(lián)RGB顏色表。
RGBAIndex 關聯(lián)RGBA顏色表。
CMYKIndex 關聯(lián)CMYK顏色表。
HSLIndex 關聯(lián)HSL顏色表。
RedBand 紅色波段。
GreenBand 綠色波段。
BlueBand 藍色波段。
AlphaBand 透明波段。
HueBand HLS的色調(diào)分量。
SaturationBand HLS的飽和度分量。
LightnessBand HLS的亮度分量。
CyanBand CMYK的青色波段。
MegentaBand CMYK的品紅波段。
YellowBand CMYK的黃色波段。
BlackBand CMYK的黑色波段。
YBand YCBCR的亮度分量。
CbBand YCBCR的藍色色度分量。
CrBand YCBCR的紅色色度分量。

示例

update rast set rast=ST_SetColorInterp(rast,0, 'CI_Cyan');

__________________________________
(1 row)