KlassenKlassenKlassenKlassen | | | | Operatoren

convert_map_typeconvert_map_typeConvertMapTypeconvert_map_typeConvertMapTypeConvertMapType (Operator)

Name

convert_map_typeconvert_map_typeConvertMapTypeconvert_map_typeConvertMapTypeConvertMapType — Konvertieren von Abbildungsvorschriften in andere Typen.

Signatur

convert_map_type(Map : MapConverted : NewType, ImageWidth : )

Herror convert_map_type(const Hobject Map, Hobject* MapConverted, const char* NewType, const Hlong ImageWidth)

Herror T_convert_map_type(const Hobject Map, Hobject* MapConverted, const Htuple NewType, const Htuple ImageWidth)

Herror convert_map_type(Hobject Map, Hobject* MapConverted, const HTuple& NewType, const HTuple& ImageWidth)

HImage HImage::ConvertMapType(const HTuple& NewType, const HTuple& ImageWidth) const

void ConvertMapType(const HObject& Map, HObject* MapConverted, const HTuple& NewType, const HTuple& ImageWidth)

HImage HImage::ConvertMapType(const HString& NewType, const HTuple& ImageWidth) const

HImage HImage::ConvertMapType(const HString& NewType, Hlong ImageWidth) const

HImage HImage::ConvertMapType(const char* NewType, Hlong ImageWidth) const

void HOperatorSetX.ConvertMapType(
[in] IHUntypedObjectX* Map, [out] IHUntypedObjectX*MapConverted, [in] VARIANT NewType, [in] VARIANT ImageWidth)

IHImageX* HImageX.ConvertMapType(
[in] BSTR NewType, [in] VARIANT ImageWidth)

static void HOperatorSet.ConvertMapType(HObject map, out HObject mapConverted, HTuple newType, HTuple imageWidth)

HImage HImage.ConvertMapType(string newType, HTuple imageWidth)

HImage HImage.ConvertMapType(string newType, int imageWidth)

Beschreibung

convert_map_typeconvert_map_typeConvertMapTypeconvert_map_typeConvertMapTypeConvertMapType konvertiert die Eingabeabbildungsvorschrift MapMapMapMapMapmap in einen anderen Typ. Der hauptsächliche Nutzen von convert_map_typeconvert_map_typeConvertMapTypeconvert_map_typeConvertMapTypeConvertMapType 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.

NewTypeNewTypeNewTypeNewTypeNewTypenewType 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_imageMapImagemap_imageMapImageMapImage). (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_imageMapImagemap_imageMapImageMapImage). (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 MapConvertedMapConvertedMapConvertedMapConvertedMapConvertedmapConverted angewendet werden soll muss in ImageWidthImageWidthImageWidthImageWidthImageWidthimageWidth ü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.

Parallelisierung

Parameter

MapMapMapMapMapmap (input_object)  (multichannel-)image objectHImageHImageHImageHImageXHobject (vector_field / int4 / int8 / uint2)

Eingabeabbildungsvorschrift.

MapConvertedMapConvertedMapConvertedMapConvertedMapConvertedmapConverted (output_object)  (multichannel-)image objectHImageHImageHImageHImageXHobject * (vector_field / int4 / int8 / uint2)

Konvertierte Abbildungsvorschrift.

NewTypeNewTypeNewTypeNewTypeNewTypenewType (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (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"

ImageWidthImageWidthImageWidthImageWidthImageWidthimageWidth (input_control)  integer HTupleHTupleHTupleVARIANTHtuple (integer / string) (int / long / string) (Hlong / HString) (Hlong / char*) (Hlong / BSTR) (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_typeConvertMapTypeconvert_map_typeConvertMapTypeConvertMapType gibt 2 (H_MSG_TRUE) zurück, wenn alle Parameter korrekt sind.

Vorgänger

gen_image_to_world_plane_mapgen_image_to_world_plane_mapGenImageToWorldPlaneMapgen_image_to_world_plane_mapGenImageToWorldPlaneMapGenImageToWorldPlaneMap, gen_radial_distortion_mapgen_radial_distortion_mapGenRadialDistortionMapgen_radial_distortion_mapGenRadialDistortionMapGenRadialDistortionMap, gen_arbitrary_distortion_mapgen_arbitrary_distortion_mapGenArbitraryDistortionMapgen_arbitrary_distortion_mapGenArbitraryDistortionMapGenArbitraryDistortionMap, gen_grid_rectification_mapgen_grid_rectification_mapGenGridRectificationMapgen_grid_rectification_mapGenGridRectificationMapGenGridRectificationMap, find_local_deformable_modelfind_local_deformable_modelFindLocalDeformableModelfind_local_deformable_modelFindLocalDeformableModelFindLocalDeformableModel

Nachfolger

map_imagemap_imageMapImagemap_imageMapImageMapImage

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren