gen_image_warp_mapT_gen_image_warp_mapGenImageWarpMapGenImageWarpMapgen_image_warp_map (Operator)

Name

gen_image_warp_mapT_gen_image_warp_mapGenImageWarpMapGenImageWarpMapgen_image_warp_map — Erzeugung einer Abbildungsvorschrift basierend auf nichtregelmäßigen Korrespondenzpunkten.

Signatur

gen_image_warp_map( : Map : Row1, Column1, Row2, Column2, ImageWidth, ImageHeight, MapWidth, MapHeight, Method, MapType, GenParamName, GenParamValue : )

Herror T_gen_image_warp_map(Hobject* Map, const Htuple Row1, const Htuple Column1, const Htuple Row2, const Htuple Column2, const Htuple ImageWidth, const Htuple ImageHeight, const Htuple MapWidth, const Htuple MapHeight, const Htuple Method, const Htuple MapType, const Htuple GenParamName, const Htuple GenParamValue)

void GenImageWarpMap(HObject* Map, const HTuple& Row1, const HTuple& Column1, const HTuple& Row2, const HTuple& Column2, const HTuple& ImageWidth, const HTuple& ImageHeight, const HTuple& MapWidth, const HTuple& MapHeight, const HTuple& Method, const HTuple& MapType, const HTuple& GenParamName, const HTuple& GenParamValue)

static void HOperatorSet.GenImageWarpMap(out HObject map, HTuple row1, HTuple column1, HTuple row2, HTuple column2, HTuple imageWidth, HTuple imageHeight, HTuple mapWidth, HTuple mapHeight, HTuple method, HTuple mapType, HTuple genParamName, HTuple genParamValue)

def gen_image_warp_map(row_1: Sequence[float], column_1: Sequence[float], row_2: Sequence[float], column_2: Sequence[float], image_width: int, image_height: int, map_width: int, map_height: int, method: str, map_type: str, gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[Union[int, float, str]]) -> HObject

Beschreibung

gen_image_warp_mapgen_image_warp_mapGenImageWarpMapGenImageWarpMapgen_image_warp_map erzeugt eine Abbildungsvorschrift MapMapMapmapmap basierend auf den nichtregelmäßigen Korrespondenzpunkten (Row1Row1Row1row1row_1, Column1Column1Column1column1column_1) und (Row2Row2Row2row2row_2, Column2Column2Column2column2column_2).

Ausgehend von den Korrespondenzpunkten (Row1Row1Row1row1row_1, Column1Column1Column1column1column_1) und (Row2Row2Row2row2row_2, Column2Column2Column2column2column_2), bildet die Abbildungsvorschrift MapMapMapmapmap die Punkte von (Row2Row2Row2row2row_2, Column2Column2Column2column2column_2) auf (Row1Row1Row1row1row_1, Column1Column1Column1column1column_1) ab, während sie für alle anderen Koordinaten eine glatte Abbildung erzeugt.

Die Größe des Eingabebildes für die Abbildung wird mit ImageWidthImageWidthImageWidthimageWidthimage_width und ImageHeightImageHeightImageHeightimageHeightimage_height angegeben. Die Abbildungsvorschrift wird auf den Bereich reduziert, in dem nur Werte innerhalb eines Bildes dieser Größe abgerufen werden.

Die Größe der generierten Abbildungsvorschrift MapMapMapmapmap kann mit MapWidthMapWidthMapWidthmapWidthmap_width und MapHeightMapHeightMapHeightmapHeightmap_height festgelegt werden. In Kombination damit, wie (Row1Row1Row1row1row_1, Column1Column1Column1column1column_1) ausgewählt werden, kann die Abbildungsvorschrift so parametrisiert werden, dass nur ein spezifischer Teil des Eingabebildes transformiert wird.

Mit MethodMethodMethodmethodmethod kann der Algorithmus zur Generierung der Abbildungsvorschrift ausgewählt werden. Derzeit ist nur 'thin_plate_spline'"thin_plate_spline""thin_plate_spline""thin_plate_spline""thin_plate_spline" verfügbar. Diese Methode interpoliert auf globaler Ebene, was bedeutet, dass alle Punkte für die Interpolation berücksichtigt werden, unabhängig von ihrer Entfernung. Der Einfluss entfernterer Punkte ist korreliert mit , wobei die Distanz zwischen zwei Punkten definiert.

Mit MapTypeMapTypeMapTypemapTypemap_type kann der Typ der Abbildungsvorschrift ausgewählt werden. Derzeit ist nur 'coord_map_sub_pix'"coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix" verfügbar (convert_map_typeconvert_map_typeConvertMapTypeConvertMapTypeconvert_map_type beschreibt die Typen).

Weitere methodenspezifische Parameter können mit GenParamNameGenParamNameGenParamNamegenParamNamegen_param_name und GenParamValueGenParamValueGenParamValuegenParamValuegen_param_value übergeben werden. Die aktuell unterstützte Methode akzeptiert keine zusätzlichen Parameter.

Ausführungsinformationen

Parameter

MapMapMapmapmap (output_object)  singlechannelimage objectHImageHObjectHObjectHobject * (vector_field)

Generierte Abbildungsvorschrift.

Row1Row1Row1row1row_1 (input_control)  point.y-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Zeilen-Koordinate der Originalkorrespondenzpunkte.

Column1Column1Column1column1column_1 (input_control)  point.x-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Spalten-Koordinate der Originalkorrespondenzpunkte.

Restriktion: number(Row1) == number(Column1)

Row2Row2Row2row2row_2 (input_control)  point.y-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Zeilen-Koordinate der Zielkorrespondenzpunkte.

Restriktion: number(Row2) == number(Row1)

Column2Column2Column2column2column_2 (input_control)  point.x-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Spalten-Koordinate der Zielkorrespondenzpunkte.

Restriktion: number(Column2) == number(Column1)

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

Breite des abzubildenden Bildes.

Restriktion: ImageWidth > 0

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

Höhe des zu abzubildenden Bildes

Restriktion: ImageHeight > 0

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

Breite der erzeugten Abbildungsvorschrift.

Restriktion: MapWidth > 0

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

Höhe der erzeugten Abbildungsvorschrift.

Restriktion: MapHeight > 0

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

Verwendete Methode zur Erstellung der Abbildungsvorschrift.

Default: 'thin_plate_spline' "thin_plate_spline" "thin_plate_spline" "thin_plate_spline" "thin_plate_spline"

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

Typ der erzeugten Abbildungsvorschrift.

Default: 'coord_map_sub_pix' "coord_map_sub_pix" "coord_map_sub_pix" "coord_map_sub_pix" "coord_map_sub_pix"

GenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (input_control)  attribute.name(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Namen zusätzlicher Parameter.

Default: []

GenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (input_control)  attribute.name(-array) HTupleMaybeSequence[Union[int, float, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)

Werte zusätzlicher Parameter.

Default: []

Nachfolger

map_imagemap_imageMapImageMapImagemap_image

Alternativen

gen_arbitrary_distortion_mapgen_arbitrary_distortion_mapGenArbitraryDistortionMapGenArbitraryDistortionMapgen_arbitrary_distortion_map, gen_grid_rectification_mapgen_grid_rectification_mapGenGridRectificationMapGenGridRectificationMapgen_grid_rectification_map

Modul

Foundation