convert_map_typeconvert_map_typeConvertMapTypeConvertMapTypeconvert_map_type (Operator)
Name
convert_map_typeconvert_map_typeConvertMapTypeConvertMapTypeconvert_map_type — Konvertieren von Abbildungsvorschriften in andere Typen.
Signatur
Beschreibung
convert_map_typeconvert_map_typeConvertMapTypeConvertMapTypeConvertMapTypeconvert_map_type konvertiert die Eingabeabbildungsvorschrift
MapMapMapMapmapmap in einen anderen Typ.
Der hauptsächliche Nutzen von convert_map_typeconvert_map_typeConvertMapTypeConvertMapTypeConvertMapTypeconvert_map_type liegt darin
Abbildungsvorschriften vom Typ 'nearest_neighbor'"nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor" bzw.
'bilinear'"bilinear""bilinear""bilinear""bilinear""bilinear" in zwei Koordinatenbilder ('coord_map_sub_pix'"coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix")
zu konvertieren, da dies der einzige Typ ist, der auf Compute Devices
unterstützt wird.
NewTypeNewTypeNewTypeNewTypenewTypenew_type legt die Art der Konversion fest. Die folgenden Werte
sind erlaubt:
- 'coord_map_sub_pix'"coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix"
-
erzeugt eine Abbildungsvorschrift, die
aus einem Vektorfeld besteht, welches die subpixelgenauen Koordinaten
für das Mapping jedes Pixels enthält.
(Der Typ der Eingabeabbildungsvorschrift muss entweder 'bilinear'"bilinear""bilinear""bilinear""bilinear""bilinear"
oder 'nearest_neighbor'"nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor" sein)
- 'bilinear'"bilinear""bilinear""bilinear""bilinear""bilinear"
-
erzeugt eine bilinear interpolierende
Abbildungsvorschrift (siehe map_imagemap_imageMapImageMapImageMapImagemap_image).
(Der Typ der Eingabeabbildungsvorschrift muss
'coord_map_sub_pix'"coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix" sein)
- 'nearest_neighbor'"nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor"
erzeugt eine Nächste-Nachbar
Abbildungsvorschrift (siehe map_imagemap_imageMapImageMapImageMapImagemap_image).
(Der Typ der Eingabeabbildungsvorschrift muss
'coord_map_sub_pix'"coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix" sein)
Die Breite der Bilder auf die MapConvertedMapConvertedMapConvertedMapConvertedmapConvertedmap_converted angewendet werden soll
muss in ImageWidthImageWidthImageWidthImageWidthimageWidthimage_width übergeben werden. Falls diese Breite identisch
mit der Breite von MapMapMapMapmapmap ist, kann auch 'map_width'"map_width""map_width""map_width""map_width""map_width"
übergeben werden.
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Wird ohne Parallelisierung verarbeitet.
Parameter
MapMapMapMapmapmap (input_object) (multichannel-)image → objectHImageHObjectHImageHobject (vector_field / int4 / int8 / uint2)
Eingabeabbildungsvorschrift.
MapConvertedMapConvertedMapConvertedMapConvertedmapConvertedmap_converted (output_object) (multichannel-)image → objectHImageHObjectHImageHobject * (vector_field / int4 / int8 / uint2)
Konvertierte Abbildungsvorschrift.
NewTypeNewTypeNewTypeNewTypenewTypenew_type (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Typ von MapConverted.
Defaultwert:
'coord_map_sub_pix'
"coord_map_sub_pix"
"coord_map_sub_pix"
"coord_map_sub_pix"
"coord_map_sub_pix"
"coord_map_sub_pix"
Werteliste: 'bilinear'"bilinear""bilinear""bilinear""bilinear""bilinear", 'coord_map_sub_pix'"coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix", 'nearest_neighbor'"nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor"
ImageWidthImageWidthImageWidthImageWidthimageWidthimage_width (input_control) integer → HTupleUnion[int, str]HTupleHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*)
Breite der Bilder auf die MapConverted angewandt wird.
Defaultwert:
'map_width'
"map_width"
"map_width"
"map_width"
"map_width"
"map_width"
Beispiel (HDevelop)
gen_radial_distortion_map (MapFixed, CamParOriginal, CamParVirtualFixed, \
'bilinear')
convert_map_type(MapFixed, MapConverted, 'coord_map_sub_pix', 'map_width')
query_available_compute_devices (DeviceIdentifier)
open_compute_device (DeviceIdentifier[0], DeviceHandle)
activate_compute_device (DeviceHandle)
map_image (GrayImage, MapConverted, ImageRectifiedFixed)
Ergebnis
convert_map_typeconvert_map_typeConvertMapTypeConvertMapTypeConvertMapTypeconvert_map_type gibt 2 (H_MSG_TRUE) zurück, wenn alle Parameter korrekt sind.
Vorgänger
gen_image_to_world_plane_mapgen_image_to_world_plane_mapGenImageToWorldPlaneMapGenImageToWorldPlaneMapGenImageToWorldPlaneMapgen_image_to_world_plane_map,
gen_radial_distortion_mapgen_radial_distortion_mapGenRadialDistortionMapGenRadialDistortionMapGenRadialDistortionMapgen_radial_distortion_map,
gen_arbitrary_distortion_mapgen_arbitrary_distortion_mapGenArbitraryDistortionMapGenArbitraryDistortionMapGenArbitraryDistortionMapgen_arbitrary_distortion_map,
gen_grid_rectification_mapgen_grid_rectification_mapGenGridRectificationMapGenGridRectificationMapGenGridRectificationMapgen_grid_rectification_map,
find_local_deformable_modelfind_local_deformable_modelFindLocalDeformableModelFindLocalDeformableModelFindLocalDeformableModelfind_local_deformable_model
Nachfolger
map_imagemap_imageMapImageMapImageMapImagemap_image
Modul
Foundation