gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1gen_rectangle1 (Operator)

Name

gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1gen_rectangle1 — Erzeugen eines Rechtecks parallel zu den Koordinatenachsen.

Signatur

gen_rectangle1( : Rectangle : Row1, Column1, Row2, Column2 : )

Herror gen_rectangle1(Hobject* Rectangle, double Row1, double Column1, double Row2, double Column2)

Herror T_gen_rectangle1(Hobject* Rectangle, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2)

void GenRectangle1(HObject* Rectangle, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2)

void HRegion::HRegion(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2)

void HRegion::HRegion(double Row1, double Column1, double Row2, double Column2)

void HRegion::GenRectangle1(const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2)

void HRegion::GenRectangle1(double Row1, double Column1, double Row2, double Column2)

static void HOperatorSet.GenRectangle1(out HObject rectangle, HTuple row1, HTuple column1, HTuple row2, HTuple column2)

public HRegion(HTuple row1, HTuple column1, HTuple row2, HTuple column2)

public HRegion(double row1, double column1, double row2, double column2)

void HRegion.GenRectangle1(HTuple row1, HTuple column1, HTuple row2, HTuple column2)

void HRegion.GenRectangle1(double row1, double column1, double row2, double column2)

def gen_rectangle1(row_1: MaybeSequence[Union[int, float]], column_1: MaybeSequence[Union[int, float]], row_2: MaybeSequence[Union[int, float]], column_2: MaybeSequence[Union[int, float]]) -> HObject

Beschreibung

gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1 generiert ein oder mehrere Rechtecke parallel zu den Koordinatenachsen, welche durch das linke obere Eck (Row1Row1Row1Row1row1row_1, Column1Column1Column1Column1column1column_1) und das rechte untere Eck (Row2Row2Row2Row2row2row_2, Column2Column2Column2Column2column2column_2) beschrieben werden. Es kann mehr als eine Region erzeugt werden, indem ein Tupel von Eckpunkten übergeben wird. Das Koordinatensystem läuft von (0,0) (linkes oberes Eck) bis (Width-1,Height-1). Siehe hierzu auch get_systemget_systemGetSystemGetSystemGetSystemget_system und reset_obj_dbreset_obj_dbResetObjDbResetObjDbResetObjDbreset_obj_db.

Ausführungsinformationen

Parameter

RectangleRectangleRectangleRectanglerectanglerectangle (output_object)  region(-array) objectHRegionHObjectHRegionHobject *

Erzeugtes Rechteck.

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

Zeile des linken oberen Eckpunkts.

Defaultwert: 30.0

Wertevorschläge: 0.0, 10.0, 20.0, 50.0, 100.0, 200.0

Typischer Wertebereich: Row1 Row1 Row1 Row1 row1 row_1 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

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

Spalte des linken oberen Eckpunkts.

Defaultwert: 20.0

Wertevorschläge: 0.0, 10.0, 20.0, 50.0, 100.0, 200.0

Typischer Wertebereich: Column1 Column1 Column1 Column1 column1 column_1 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

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

Zeile des rechten unteren Eckpunkts.

Defaultwert: 100.0

Wertevorschläge: 10.0, 20.0, 50.0, 100.0, 200.0, 300.0, 400.0, 500.0, 511.0

Typischer Wertebereich: Row2 Row2 Row2 Row2 row2 row_2 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

Restriktion: Row2 >= Row1

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

Spalte des rechten unteren Eckpunkts.

Defaultwert: 200.0

Wertevorschläge: 10.0, 20.0, 50.0, 100.0, 200.0, 300.0, 400.0, 500.0, 511.0

Typischer Wertebereich: Column2 Column2 Column2 Column2 column2 column_2 (lin)

Minimale Schrittweite: 1.0

Empfohlene Schrittweite: 10.0

Restriktion: Column2 >= Column1

Beispiel (HDevelop)

* Contrast improvement in a rectangular region of interest
dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
read_image(Image,'mreut')
dev_display (Image)
draw_rectangle1(WindowHandle,Row1,Column1,Row2,Column2)
gen_rectangle1(Rectangle,Row1,Column1,Row2,Column2)
reduce_domain(Image,Rectangle,Mask)
emphasize(Mask,Emphasize,9,9,1.0)
dev_display (Emphasize)

Ergebnis

Sind die Parameterwerte korrekt, dann liefert gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1gen_rectangle1 den Wert TRUE. Andernfalls wird eine Fehlerbehandlung durchgeführt. Das Clipping am aktuellen Bildformat wird durch set_system('clip_region',<'2 (H_MSG_TRUE)'/'3 (H_MSG_FALSE)'>)set_system("clip_region",<"2 (H_MSG_TRUE)"/"3 (H_MSG_FALSE)">)SetSystem("clip_region",<"2 (H_MSG_TRUE)"/"3 (H_MSG_FALSE)">)SetSystem("clip_region",<"2 (H_MSG_TRUE)"/"3 (H_MSG_FALSE)">)SetSystem("clip_region",<"2 (H_MSG_TRUE)"/"3 (H_MSG_FALSE)">)set_system("clip_region",<"2 (H_MSG_TRUE)"/"3 (H_MSG_FALSE)">) festgelegt.

Nachfolger

paint_regionpaint_regionPaintRegionPaintRegionPaintRegionpaint_region, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain

Alternativen

gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2gen_rectangle2, gen_region_polygongen_region_polygonGenRegionPolygonGenRegionPolygonGenRegionPolygongen_region_polygon, fill_upfill_upFillUpFillUpFillUpfill_up, gen_region_runsgen_region_runsGenRegionRunsGenRegionRunsGenRegionRunsgen_region_runs, gen_region_pointsgen_region_pointsGenRegionPointsGenRegionPointsGenRegionPointsgen_region_points, gen_region_linegen_region_lineGenRegionLineGenRegionLineGenRegionLinegen_region_line

Siehe auch

draw_rectangle1draw_rectangle1DrawRectangle1DrawRectangle1DrawRectangle1draw_rectangle1, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, smallest_rectangle1smallest_rectangle1SmallestRectangle1SmallestRectangle1SmallestRectangle1smallest_rectangle1

Modul

Foundation