get_grayval_interpolatedget_grayval_interpolatedGetGrayvalInterpolatedGetGrayvalInterpolatedget_grayval_interpolated (Operator)

Name

get_grayval_interpolatedget_grayval_interpolatedGetGrayvalInterpolatedGetGrayvalInterpolatedget_grayval_interpolated — Gibt Grauwerte eines Bildes an durch Zeilen- und Spaltenkoordinaten gegebenen Positionen zurück.

Signatur

get_grayval_interpolated(Image : : Row, Column, Interpolation : Grayval)

Herror get_grayval_interpolated(const Hobject Image, double Row, double Column, const char* Interpolation, double* Grayval)

Herror T_get_grayval_interpolated(const Hobject Image, const Htuple Row, const Htuple Column, const Htuple Interpolation, Htuple* Grayval)

void GetGrayvalInterpolated(const HObject& Image, const HTuple& Row, const HTuple& Column, const HTuple& Interpolation, HTuple* Grayval)

HTuple HImage::GetGrayvalInterpolated(const HTuple& Row, const HTuple& Column, const HString& Interpolation) const

double HImage::GetGrayvalInterpolated(double Row, double Column, const HString& Interpolation) const

double HImage::GetGrayvalInterpolated(double Row, double Column, const char* Interpolation) const

double HImage::GetGrayvalInterpolated(double Row, double Column, const wchar_t* Interpolation) const   ( Nur Windows)

static void HOperatorSet.GetGrayvalInterpolated(HObject image, HTuple row, HTuple column, HTuple interpolation, out HTuple grayval)

HTuple HImage.GetGrayvalInterpolated(HTuple row, HTuple column, string interpolation)

double HImage.GetGrayvalInterpolated(double row, double column, string interpolation)

def get_grayval_interpolated(image: HObject, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]], interpolation: str) -> Sequence[float]

def get_grayval_interpolated_s(image: HObject, row: MaybeSequence[Union[float, int]], column: MaybeSequence[Union[float, int]], interpolation: str) -> float

Beschreibung

Der Operator get_grayval_interpolatedget_grayval_interpolatedGetGrayvalInterpolatedGetGrayvalInterpolatedget_grayval_interpolated liefert die interpolierten Grauwerte einzelner Subpixel-Positionen des Bildes ImageImageImageimageimage. Die Koordinaten der Zeilenpositionen werden in dem Tupel RowRowRowrowrow, die Koordinaten der Spaltenpositionen in dem Tupel ColumnColumnColumncolumncolumn übergeben. Der Grauwerte werden in GrayvalGrayvalGrayvalgrayvalgrayval als ein Tupel von Gleitkommazahlen zurückgegeben.

Das Interpolationsverfahren kann mittels des Parameters InterpolationInterpolationInterpolationinterpolationinterpolation gewählt werden. Folgende Interpolationsmethoden werden unterstützt:

'bilinear'"bilinear""bilinear""bilinear""bilinear":

Die Ergebnisse in GrayvalGrayvalGrayvalgrayvalgrayval werden mittels einer bilinearen Interpolation berechnet, die die vier benachbarten Grauwerte der gegebenen Koordinaten nutzt. Direction- und Cyclic-Bilder werden behandelt wie Byte-Bilder.

'bicubic'"bicubic""bicubic""bicubic""bicubic":

Die Ergebnisse in GrayvalGrayvalGrayvalgrayvalgrayval werden mittels einer bikubischen Interpolation berechnet, die sechzehn benachbarte Grauwerte der gegebenen Koordinaten nutzt. Direction- und Cyclic-Bilder werden behandelt wie Byte-Bilder. In diesem Modus können Grauwerte als Ergebnis auftreten, die außerhalb des darstellbaren Zahlenbereiches des Eingabebildtyps liegen.

'bicubic_clipped'"bicubic_clipped""bicubic_clipped""bicubic_clipped""bicubic_clipped":

Die Ergebnisse in GrayvalGrayvalGrayvalgrayvalgrayval werden mittels einer bikubischen Interpolation berechnet, die sechzehn benachbarte Grauwerte der gegebenen Koordinaten nutzt. Direction- und Cyclic-Bilder werden behandelt wie Byte-Bilder. In diesem Modus werden Ergebnisse, die außerhalb des darstellbaren Zahlenbereiches des Eingabebildtyps liegen, auf den darstellbaren Bereich beschnitten.

Es ist zu beachten, dass get_grayval_interpolatedget_grayval_interpolatedGetGrayvalInterpolatedGetGrayvalInterpolatedget_grayval_interpolated den Definitionsbereich des Bildes nicht berücksichtigt. D.h. wenn der Definitionsbereich z.B. mit reduce_domainreduce_domainReduceDomainReduceDomainreduce_domain eingeschränkt wurde, werden auch für Punkte die außerhalb des Definitionsbereichs liegen Grauwerte zurück gegeben.

Ausführungsinformationen

Parameter

ImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHObjectHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real / complex)

Bild, auf dessen Grauwerte zugegriffen werden soll.

RowRowRowrowrow (input_control)  point.y(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Zeilenkoordinaten der Positionen.

Default: 0

Wertevorschläge: 0, 64, 128, 256, 512, 1024

Wertebereich: -0.5 ≤ Row Row Row row row

Restriktion: -0.5 <= Row && Row < height(Image) - 0.5

ColumnColumnColumncolumncolumn (input_control)  point.x(-array) HTupleMaybeSequence[Union[float, int]]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Spaltenkoordinaten der Positionen.

Parameteranzahl: Column == Row

Default: 0

Wertevorschläge: 0, 64, 128, 256, 512, 1024

Wertebereich: -0.5 ≤ Column Column Column column column

Restriktion: -0.5 <= Column && Column < width(Image) - 0.5

InterpolationInterpolationInterpolationinterpolationinterpolation (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Interpolationsverfahren.

Default: 'bilinear' "bilinear" "bilinear" "bilinear" "bilinear"

Werteliste: 'bicubic'"bicubic""bicubic""bicubic""bicubic", 'bicubic_clipped'"bicubic_clipped""bicubic_clipped""bicubic_clipped""bicubic_clipped", 'bilinear'"bilinear""bilinear""bilinear""bilinear"

GrayvalGrayvalGrayvalgrayvalgrayval (output_control)  grayval(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Grauwerte an den angegebenen Bildkoordinaten.

Ergebnis

Sind die Parameterwerte korrekt, dann liefert get_grayval_interpolatedget_grayval_interpolatedGetGrayvalInterpolatedGetGrayvalInterpolatedget_grayval_interpolated den Wert 2 ( H_MSG_TRUE) . Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

read_imageread_imageReadImageReadImageread_image

Alternativen

get_grayval_contour_xldget_grayval_contour_xldGetGrayvalContourXldGetGrayvalContourXldget_grayval_contour_xld, get_grayvalget_grayvalGetGrayvalGetGrayvalget_grayval

Modul

Foundation