全部產品
Search
文件中心

AnalyticDB:ST_SetColorInterp

更新時間:Feb 05, 2024

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

文法

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

參數

參數名稱

描述

rast

raster對象。

band_sn

指定的波段序號,從0開始。

interp

interp枚舉值。

描述

interp枚舉值及其解釋:

說明

Undefined

顏色解釋類型未定義。

GrayIndex

關聯灰階顏色表。

RGBIndex

關聯RGB顏色表。

RGBAIndex

關聯RGBA顏色表。

CMYKIndex

關聯CMYK顏色表。

HSLIndex

關聯HSL顏色表。

RedBand

紅色波段。

GreenBand

綠色波段。

BlueBand

藍色波段。

AlphaBand

透明波段。

HueBand

HLS的色調分量。

SaturationBand

HLS的飽和度分量。

LightnessBand

HLS的亮度分量。

CyanBand

CMYK的青色波段。

MegentaBand

CMYK的品紅波段。

YellowBand

CMYK的黃色波段。

BlackBand

CMYK的黑色波段。

YBand

YCBCR的亮度分量。

CbBand

YCBCR的藍色色度分量。

CrBand

YCBCR的紅色色度分量。

樣本

UPDATE raster_table SET rast = ST_SetColorInterp(rast, 0, 'YBand');
說明

您可以使用SELECT enumlabel FROM pg_enum WHERE enumtypid = 'colorinterp'::regtype;命令查詢可設定的顏色解釋類型。