| Table of Contents / Filters / Geometric Transformations | Operators |
convert_map_type — Convert image maps into other map types.
convert_map_type(Map : MapConverted : NewType, ImageWidth : )
convert_map_type converts the input Map into a different map type. The main usage of convert_map_type is to convert a nearest neighbor or bilinear map (e.g., obtained by gen_image_to_world_plane_map) to a coordinate map, as this is the only type supported on compute devices.
NewType specifies the type of conversion. The following values are supported:
creates a map that consists of a vector_field image which contains the absolute subpixel precise row and column coordinates of each pixel's mapping. (input map must be 'bilinear' or 'nearest_neighbor')
creates a map with linear coordinates and bilinear interpolation coefficents (see map_image). (input map must be 'coord_map_sub_pix')
creates a nearest neighbor map with linear coordinates (see map_image). (input map must be 'coord_map_sub_pix')
In ImageWidth the width of the images to be mapped by MapConverted must be given. If this width is identic to the width of Map, you can pass the string 'map_width'.
Input map.
Converted map.
Type of MapConverted.
Default value: 'coord_map_sub_pix'
List of values: 'coord_map_sub_pix', 'bilinear', 'nearest_neighbor'
Width of images to be mapped.
Default value: 'map_width'
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)
convert_map_type returns 2 (H_MSG_TRUE) if all parameter values are correct.
gen_image_to_world_plane_map, gen_radial_distortion_map, gen_arbitrary_distortion_map, gen_grid_rectification_map, find_local_deformable_model
Foundation
| Table of Contents / Filters / Geometric Transformations | Operators |
| HALCON Reference Manual 10.0.2 | Copyright © 1996-2011 MVTec Software GmbH |