KlassenKlassenKlassenKlassen | | | | Operatoren

create_color_trans_lutcreate_color_trans_lutCreateColorTransLutcreate_color_trans_lutCreateColorTransLutCreateColorTransLut (Operator)

Name

create_color_trans_lutcreate_color_trans_lutCreateColorTransLutcreate_color_trans_lutCreateColorTransLutCreateColorTransLut — Generiert eine Look-Up-Tabelle für die Farbraumtransformation von RGB Farbraum in die weiteren Farbräume.

Signatur

create_color_trans_lut( : : ColorSpace, TransDirection, NumBits : ColorTransLUTHandle)

Herror create_color_trans_lut(const char* ColorSpace, const char* TransDirection, const Hlong NumBits, Hlong* ColorTransLUTHandle)

Herror T_create_color_trans_lut(const Htuple ColorSpace, const Htuple TransDirection, const Htuple NumBits, Htuple* ColorTransLUTHandle)

Herror create_color_trans_lut(const HTuple& ColorSpace, const HTuple& TransDirection, const HTuple& NumBits, Hlong* ColorTransLUTHandle)

void HColorTransLUT::CreateColorTransLut(const HTuple& ColorSpace, const HTuple& TransDirection, const HTuple& NumBits)

void CreateColorTransLut(const HTuple& ColorSpace, const HTuple& TransDirection, const HTuple& NumBits, HTuple* ColorTransLUTHandle)

static HColorTransLUT HImage::CreateColorTransLut(const HString& ColorSpace, const HString& TransDirection, Hlong NumBits)

static HColorTransLUT HImage::CreateColorTransLut(const char* ColorSpace, const char* TransDirection, Hlong NumBits)

void HColorTransLUT::HColorTransLUT(const HString& ColorSpace, const HString& TransDirection, Hlong NumBits)

void HColorTransLUT::HColorTransLUT(const char* ColorSpace, const char* TransDirection, Hlong NumBits)

void HColorTransLUT::CreateColorTransLut(const HString& ColorSpace, const HString& TransDirection, Hlong NumBits)

void HColorTransLUT::CreateColorTransLut(const char* ColorSpace, const char* TransDirection, Hlong NumBits)

void HOperatorSetX.CreateColorTransLut(
[in] VARIANT ColorSpace, [in] VARIANT TransDirection, [in] VARIANT NumBits, [out] VARIANT* ColorTransLUTHandle)

IHColorTransLUTX* HImageX.CreateColorTransLut(
[in] BSTR ColorSpace, [in] BSTR TransDirection, [in] Hlong NumBits)

void HColorTransLUTX.CreateColorTransLut(
[in] BSTR ColorSpace, [in] BSTR TransDirection, [in] Hlong NumBits)

static void HOperatorSet.CreateColorTransLut(HTuple colorSpace, HTuple transDirection, HTuple numBits, out HTuple colorTransLUTHandle)

static HColorTransLUT HImage.CreateColorTransLut(string colorSpace, string transDirection, int numBits)

public HColorTransLUT(string colorSpace, string transDirection, int numBits)

void HColorTransLUT.CreateColorTransLut(string colorSpace, string transDirection, int numBits)

Beschreibung

create_color_trans_lutcreate_color_trans_lutCreateColorTransLutcreate_color_trans_lutCreateColorTransLutCreateColorTransLut generiert eine Look-Up-Tabelle für die Farbraumtransformation aus dem RGB-Farbraum in andere Farbräume und umgekehrt.

Für die Transformationen werden 3-kanalige 8-Bit Farbbilder benötigt, d.h. jeder Kanal muss vom Typ 'byte' sein. Besitzen die Eingabebilder unterschiedliche Domänen, wird nur die gemeinsame Schnittmenge aller drei Eingabebilder transformiert.

Der Parameter ColorSpaceColorSpaceColorSpaceColorSpaceColorSpacecolorSpace gibt den Ausgangs- oder den Zielfarbraum an. Mit dem Parameter TransDirectionTransDirectionTransDirectionTransDirectionTransDirectiontransDirection wird die Richtung der Transformation ('von RGB' oder 'nach RGB') festgelegt.

Die Verwendung von der Look-Up-Tabelle für die Farbraumtransformation beschleunigt viele Farbraumtransformationen im Vergleich zu den Operatoren trans_from_rgbtrans_from_rgbTransFromRgbtrans_from_rgbTransFromRgbTransFromRgb und trans_to_rgbtrans_to_rgbTransToRgbtrans_to_rgbTransToRgbTransToRgb. Bei Transformationen aus / (nach) den Farbräumen 'yiq', 'argyb', 'yuv', 'ciexyz' oder 'i1i2i3' wird empfohlen die Operatoren trans_from_rgbtrans_from_rgbTransFromRgbtrans_from_rgbTransFromRgbTransFromRgb und trans_to_rgbtrans_to_rgbTransToRgbtrans_to_rgbTransToRgbTransToRgb zu verwenden.

Für weitere Informationen zu den Farbraumtransformationen siehe die Beschreibungen der Operatoren trans_from_rgbtrans_from_rgbTransFromRgbtrans_from_rgbTransFromRgbTransFromRgb und trans_to_rgbtrans_to_rgbTransToRgbtrans_to_rgbTransToRgbTransToRgb.

Parallelisierung

Dieser Operator liefert ein Handle zurück. Es ist zu beachten, dass der Zustand einer Instanz dieses Handletyps durch bestimmte Operatoren geändert werden kann, obwohl das Handle als Eingabeparameter in diesen Operatoren verwendet wird.

Parameter

ColorSpaceColorSpaceColorSpaceColorSpaceColorSpacecolorSpace (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Gewünschte Farbtransformation.

Defaultwert: 'hsv' "hsv" "hsv" "hsv" "hsv" "hsv"

Werteliste: 'argyb'"argyb""argyb""argyb""argyb""argyb", 'cielab'"cielab""cielab""cielab""cielab""cielab", 'cielchab'"cielchab""cielchab""cielchab""cielchab""cielchab", 'cielchuv'"cielchuv""cielchuv""cielchuv""cielchuv""cielchuv", 'cieluv'"cieluv""cieluv""cieluv""cieluv""cieluv", 'ciexyz'"ciexyz""ciexyz""ciexyz""ciexyz""ciexyz", 'ciexyz3'"ciexyz3""ciexyz3""ciexyz3""ciexyz3""ciexyz3", 'ciexyz4'"ciexyz4""ciexyz4""ciexyz4""ciexyz4""ciexyz4", 'ciexyz4'"ciexyz4""ciexyz4""ciexyz4""ciexyz4""ciexyz4", 'hls'"hls""hls""hls""hls""hls", 'hls'"hls""hls""hls""hls""hls", 'hsi'"hsi""hsi""hsi""hsi""hsi", 'hsv'"hsv""hsv""hsv""hsv""hsv", 'i1i2i3'"i1i2i3""i1i2i3""i1i2i3""i1i2i3""i1i2i3", 'ihs'"ihs""ihs""ihs""ihs""ihs", 'lms'"lms""lms""lms""lms""lms", 'yiq'"yiq""yiq""yiq""yiq""yiq", 'yuv'"yuv""yuv""yuv""yuv""yuv"

TransDirectionTransDirectionTransDirectionTransDirectionTransDirectiontransDirection (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Gewünschte Richtung der Farbtransformation.

Defaultwert: 'from_rgb' "from_rgb" "from_rgb" "from_rgb" "from_rgb" "from_rgb"

Werteliste: 'from_rgb'"from_rgb""from_rgb""from_rgb""from_rgb""from_rgb", 'to_rgb'"to_rgb""to_rgb""to_rgb""to_rgb""to_rgb"

NumBitsNumBitsNumBitsNumBitsNumBitsnumBits (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer) (int / long) (Hlong) (Hlong) (Hlong) (Hlong)

Anzahl der Bits des Eingangsbildes.

Defaultwert: 8

Werteliste: 8

ColorTransLUTHandleColorTransLUTHandleColorTransLUTHandleColorTransLUTHandleColorTransLUTHandlecolorTransLUTHandle (output_control)  color_trans_lut HColorTransLUT, HTupleHTupleHColorTransLUT, HTupleHColorTransLUTX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle der Look-Up-Tabelle für Farbtransformation.

Ergebnis

create_color_trans_lutcreate_color_trans_lutCreateColorTransLutcreate_color_trans_lutCreateColorTransLutCreateColorTransLut liefert den Wert 2 (H_MSG_TRUE), falls die übergebenen Parameter korrekt sind und die Look-Up-Tabelle erzeugt werden konnte. Ansonsten wird eine Fehlerbehandlung durchgeführt.

Nachfolger

apply_color_trans_lutapply_color_trans_lutApplyColorTransLutapply_color_trans_lutApplyColorTransLutApplyColorTransLut

Siehe auch

apply_color_trans_lutapply_color_trans_lutApplyColorTransLutapply_color_trans_lutApplyColorTransLutApplyColorTransLut, clear_color_trans_lutclear_color_trans_lutClearColorTransLutclear_color_trans_lutClearColorTransLutClearColorTransLut

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren