gen_image_warp_map T_gen_image_warp_map GenImageWarpMap GenImageWarpMap gen_image_warp_map (Operator)
Name
gen_image_warp_map T_gen_image_warp_map GenImageWarpMap GenImageWarpMap gen_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_map gen_image_warp_map GenImageWarpMap GenImageWarpMap gen_image_warp_map erzeugt eine Abbildungsvorschrift Map Map Map map map
basierend auf den nichtregelmäßigen Korrespondenzpunkten
(Row1 Row1 Row1 row1 row_1 , Column1 Column1 Column1 column1 column_1 ) und (Row2 Row2 Row2 row2 row_2 , Column2 Column2 Column2 column2 column_2 ).
Ausgehend von den Korrespondenzpunkten (Row1 Row1 Row1 row1 row_1 , Column1 Column1 Column1 column1 column_1 )
und (Row2 Row2 Row2 row2 row_2 , Column2 Column2 Column2 column2 column_2 ), bildet die
Abbildungsvorschrift Map Map Map map map die Punkte von
(Row2 Row2 Row2 row2 row_2 , Column2 Column2 Column2 column2 column_2 ) auf (Row1 Row1 Row1 row1 row_1 ,
Column1 Column1 Column1 column1 column_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 ImageWidth ImageWidth ImageWidth imageWidth image_width
und ImageHeight ImageHeight ImageHeight imageHeight image_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 Map Map Map map map kann mit
MapWidth MapWidth MapWidth mapWidth map_width und MapHeight MapHeight MapHeight mapHeight map_height festgelegt werden. In Kombination
damit, wie (Row1 Row1 Row1 row1 row_1 , Column1 Column1 Column1 column1 column_1 ) ausgewählt werden, kann die
Abbildungsvorschrift so parametrisiert werden, dass nur ein spezifischer
Teil des Eingabebildes transformiert wird.
Mit Method Method Method method method 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 MapType MapType MapType mapType map_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_type convert_map_type ConvertMapType ConvertMapType convert_map_type
beschreibt die Typen).
Weitere methodenspezifische Parameter können mit GenParamName GenParamName GenParamName genParamName gen_param_name und
GenParamValue GenParamValue GenParamValue genParamValue gen_param_value übergeben werden. Die aktuell unterstützte Methode
akzeptiert keine zusätzlichen Parameter.
Ausführungsinformationen
Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
Automatisch parallelisiert auf interner Datenebene.
Parameter
Map Map Map map map (output_object) singlechannelimage → object HImage HObject HObject Hobject * (vector_field)
Generierte Abbildungsvorschrift.
Row1 Row1 Row1 row1 row_1 (input_control) point.y-array → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Zeilen-Koordinate der Originalkorrespondenzpunkte.
Column1 Column1 Column1 column1 column_1 (input_control) point.x-array → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Spalten-Koordinate der Originalkorrespondenzpunkte.
Restriktion:
number(Row1) == number(Column1)
Row2 Row2 Row2 row2 row_2 (input_control) point.y-array → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Zeilen-Koordinate der Zielkorrespondenzpunkte.
Restriktion:
number(Row2) == number(Row1)
Column2 Column2 Column2 column2 column_2 (input_control) point.x-array → HTuple Sequence[float] HTuple Htuple (real) (double ) (double ) (double )
Spalten-Koordinate der Zielkorrespondenzpunkte.
Restriktion:
number(Column2) == number(Column1)
ImageWidth ImageWidth ImageWidth imageWidth image_width (input_control) extent.x → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Breite des abzubildenden Bildes.
Restriktion:
ImageWidth > 0
ImageHeight ImageHeight ImageHeight imageHeight image_height (input_control) extent.y → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Höhe des zu abzubildenden Bildes
Restriktion:
ImageHeight > 0
MapWidth MapWidth MapWidth mapWidth map_width (input_control) extent.x → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Breite der erzeugten Abbildungsvorschrift.
Restriktion:
MapWidth > 0
MapHeight MapHeight MapHeight mapHeight map_height (input_control) extent.y → HTuple int HTuple Htuple (integer) (int / long) (Hlong ) (Hlong )
Höhe der erzeugten Abbildungsvorschrift.
Restriktion:
MapHeight > 0
Method Method Method method method (input_control) string → HTuple str HTuple Htuple (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"
MapType MapType MapType mapType map_type (input_control) string → HTuple str HTuple Htuple (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"
GenParamName GenParamName GenParamName genParamName gen_param_name (input_control) attribute.name(-array) → HTuple MaybeSequence[str] HTuple Htuple (string) (string ) (HString ) (char* )
Namen zusätzlicher Parameter.
Default:
[]
GenParamValue GenParamValue GenParamValue genParamValue gen_param_value (input_control) attribute.name(-array) → HTuple MaybeSequence[Union[int, float, str]] HTuple Htuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Werte zusätzlicher Parameter.
Default:
[]
Nachfolger
map_image map_image MapImage MapImage map_image
Alternativen
gen_arbitrary_distortion_map gen_arbitrary_distortion_map GenArbitraryDistortionMap GenArbitraryDistortionMap gen_arbitrary_distortion_map ,
gen_grid_rectification_map gen_grid_rectification_map GenGridRectificationMap GenGridRectificationMap gen_grid_rectification_map
Modul
Foundation