gen_image_surface_second_ordergen_image_surface_second_orderGenImageSurfaceSecondOrderGenImageSurfaceSecondOrdergen_image_surface_second_order (Operator)

Name

gen_image_surface_second_ordergen_image_surface_second_orderGenImageSurfaceSecondOrderGenImageSurfaceSecondOrdergen_image_surface_second_order — Erzeugen einer Grauwertfläche mit einem Polynom zweiter Ordnung.

Signatur

gen_image_surface_second_order( : ImageSurface : Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height : )

Herror gen_image_surface_second_order(Hobject* ImageSurface, const char* Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, const Hlong Width, const Hlong Height)

Herror T_gen_image_surface_second_order(Hobject* ImageSurface, const Htuple Type, const Htuple Alpha, const Htuple Beta, const Htuple Gamma, const Htuple Delta, const Htuple Epsilon, const Htuple Zeta, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

void GenImageSurfaceSecondOrder(HObject* ImageSurface, const HTuple& Type, const HTuple& Alpha, const HTuple& Beta, const HTuple& Gamma, const HTuple& Delta, const HTuple& Epsilon, const HTuple& Zeta, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

void HImage::GenImageSurfaceSecondOrder(const HString& Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, Hlong Width, Hlong Height)

void HImage::GenImageSurfaceSecondOrder(const char* Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, Hlong Width, Hlong Height)

void HImage::GenImageSurfaceSecondOrder(const wchar_t* Type, double Alpha, double Beta, double Gamma, double Delta, double Epsilon, double Zeta, double Row, double Column, Hlong Width, Hlong Height)   ( Nur Windows)

static void HOperatorSet.GenImageSurfaceSecondOrder(out HObject imageSurface, HTuple type, HTuple alpha, HTuple beta, HTuple gamma, HTuple delta, HTuple epsilon, HTuple zeta, HTuple row, HTuple column, HTuple width, HTuple height)

void HImage.GenImageSurfaceSecondOrder(string type, double alpha, double beta, double gamma, double delta, double epsilon, double zeta, double row, double column, int width, int height)

def gen_image_surface_second_order(type: str, alpha: float, beta: float, gamma: float, delta: float, epsilon: float, zeta: float, row: float, column: float, width: int, height: int) -> HObject

Beschreibung

gen_image_surface_second_ordergen_image_surface_second_orderGenImageSurfaceSecondOrderGenImageSurfaceSecondOrdergen_image_surface_second_order erzeugt eine gekrümmte Grauwertfläche nach folgender Gleichung: Die Größe des Bildes wird mit WidthWidthWidthwidthwidth und HeightHeightHeightheightheight bestimmt. Die Parameter RowRowRowrowrow und ColumnColumnColumncolumncolumn definieren den Referenzpunkt der zu erzeugenden Grauwertfläche. Dieser Referenzpunkt sollte, falls zur Bestimmung der Parameter der Grauwertfläche fit_surface_second_orderfit_surface_second_orderFitSurfaceSecondOrderFitSurfaceSecondOrderfit_surface_second_order verwendet wurde, dem in der Flächengleichung verwendeten Schwerpunkt entsprechen (siehe fit_surface_second_orderfit_surface_second_orderFitSurfaceSecondOrderFitSurfaceSecondOrderfit_surface_second_order). Seine Koordinaten können wie folgt ermittelt werden:
intersection(ROI, Image, RegionIntersection)intersection(ROI, Image, RegionIntersection)Intersection(ROI, Image, RegionIntersection)Intersection(ROI, Image, RegionIntersection)intersection(ROI, Image, RegionIntersection)
fit_surface_second_order(RegionIntersection, Image, Algorithm, Iterations, ClippingFactor, Alpha, Beta, Gamma, Delta, Epsilon, Zeta)fit_surface_second_order(RegionIntersection, Image, Algorithm, Iterations, ClippingFactor, Alpha, Beta, Gamma, Delta, Epsilon, Zeta)FitSurfaceSecondOrder(RegionIntersection, Image, Algorithm, Iterations, ClippingFactor, Alpha, Beta, Gamma, Delta, Epsilon, Zeta)FitSurfaceSecondOrder(RegionIntersection, Image, Algorithm, Iterations, ClippingFactor, Alpha, Beta, Gamma, Delta, Epsilon, Zeta)fit_surface_second_order(RegionIntersection, Image, Algorithm, Iterations, ClippingFactor, Alpha, Beta, Gamma, Delta, Epsilon, Zeta)
area_center(RegionIntersection, Area, Row, Column)area_center(RegionIntersection, Area, Row, Column)AreaCenter(RegionIntersection, Area, Row, Column)AreaCenter(RegionIntersection, Area, Row, Column)area_center(RegionIntersection, Area, Row, Column)
gen_image_surface_second_order(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)gen_image_surface_second_order(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)GenImageSurfaceSecondOrder(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)GenImageSurfaceSecondOrder(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)gen_image_surface_second_order(ImageSurface, Type, Alpha, Beta, Gamma, Delta, Epsilon, Zeta, Row, Column, Width, Height)

Die Grauwerte sind vom Typ TypeTypeTypetypetype (siehe gen_image_constgen_image_constGenImageConstGenImageConstgen_image_const für eine detailliertere Beschreibung der Pixeltypen). Grauwerte außerhalb des gültigen Bereichs werden beschnitten.

Ausführungsinformationen

Parameter

ImageSurfaceImageSurfaceImageSurfaceimageSurfaceimage_surface (output_object)  image objectHImageHObjectHObjectHobject * (byte / uint2 / real)

Erzeugtes Bild mit neuer Bildmatrix.

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

Pixeltyp.

Default: 'byte' "byte" "byte" "byte" "byte"

Werteliste: 'byte'"byte""byte""byte""byte", 'real'"real""real""real""real", 'uint2'"uint2""uint2""uint2""uint2"

AlphaAlphaAlphaalphaalpha (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Koeffizient zweiter Ordnung in vertikaler Richtung.

Default: 1.0

Wertevorschläge: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

BetaBetaBetabetabeta (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Koeffizient zweiter Ordnung in horizontaler Richtung.

Default: 1.0

Wertevorschläge: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

GammaGammaGammagammagamma (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Gemischter Koeffizient zweiter Ordnung.

Default: 1.0

Wertevorschläge: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

DeltaDeltaDeltadeltadelta (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Koeffizient erster Ordnung in vertikaler Richtung.

Default: 1.0

Wertevorschläge: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

EpsilonEpsilonEpsilonepsilonepsilon (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Koeffizient erster Ordnung in horizontaler Richtung.

Default: 1.0

Wertevorschläge: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

ZetaZetaZetazetazeta (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Koeffizient nullter Ordnung.

Default: 1.0

Wertevorschläge: -2.0, -1.0, -0.5, -0.0, 0.5, 1.0, 2.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

RowRowRowrowrow (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Zeilenkoordinate des Referenzpunktes der Fläche.

Default: 256.0

Wertevorschläge: 0.0, 128.0, 256.0, 512.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

ColumnColumnColumncolumncolumn (input_control)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Spaltenkoordinate des Referenzpunktes der Fläche.

Default: 256.0

Wertevorschläge: 0.0, 128.0, 256.0, 512.0

Minimale Schrittweite: 0.000001

Empfohlene Schrittweite: -0.005

WidthWidthWidthwidthwidth (input_control)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Breite des Bildes.

Default: 512

Wertevorschläge: 128, 256, 512, 1024

Wertebereich: 1 ≤ Width Width Width width width (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

HeightHeightHeightheightheight (input_control)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Höhe des Bildes.

Default: 512

Wertevorschläge: 128, 256, 512, 1024

Wertebereich: 1 ≤ Height Height Height height height (lin)

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Beispiel (HDevelop)

* Adjust an inhomogeneous illumination
* using gen_image_surface_second_order
read_image (Image, 'cap_illumination/cap_illumination_01')
get_image_size (Image, Width, Height)
gen_circle (Circle, 495, 630, 350.5)
difference (Image, Circle, RegionDifference)
fit_surface_second_order (RegionDifference, Image, 'regression', 5, 2, \
                          Alpha, Beta, Gamma, Delta, Epsilon, Zeta)
area_center (RegionDifference, Area, Row, Column)
gen_image_surface_second_order (ImageSurface, 'byte', Alpha, Beta, \
                                Gamma, Delta, Epsilon, Zeta, Row, Column, \
                                Width, Height)
sub_image (Image, ImageSurface, ImageSub, 1, 128)

Ergebnis

Sind die Parameterwerte korrekt, dann liefertgen_image_surface_second_ordergen_image_surface_second_orderGenImageSurfaceSecondOrderGenImageSurfaceSecondOrdergen_image_surface_second_order den Wert 2 ( H_MSG_TRUE) . Andernfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

fit_surface_second_orderfit_surface_second_orderFitSurfaceSecondOrderFitSurfaceSecondOrderfit_surface_second_order

Nachfolger

sub_imagesub_imageSubImageSubImagesub_image

Siehe auch

gen_image_gray_rampgen_image_gray_rampGenImageGrayRampGenImageGrayRampgen_image_gray_ramp, gen_image_surface_first_ordergen_image_surface_first_orderGenImageSurfaceFirstOrderGenImageSurfaceFirstOrdergen_image_surface_first_order, gen_image_constgen_image_constGenImageConstGenImageConstgen_image_const

Modul

Foundation