gen_radial_distortion_mapT_gen_radial_distortion_mapGenRadialDistortionMapGenRadialDistortionMapgen_radial_distortion_map — Generate a projection map that describes the mapping of images corresponding
to a changing radial distortion.
The mapping function is stored in the output image MapMapMapmapmap. The size of
MapMapMapmapmap is given by the camera parameters CamParamOutCamParamOutCamParamOutcamParamOutcam_param_out and
therefore defines the size of the resulting mapped images using
map_imagemap_imageMapImageMapImagemap_image. The size of the images to be mapped with map_imagemap_imageMapImageMapImagemap_image
is determined by the camera parameters CamParamInCamParamInCamParamIncamParamIncam_param_in.
MapTypeMapTypeMapTypemapTypemap_type is used to specify the type of the output MapMapMapmapmap.
If 'nearest_neighbor'"nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor" is chosen, MapMapMapmapmap consists of one image
containing one channel, in which for each pixel of the resulting image the
linearized coordinate of the pixel of the input image is stored that is the
nearest neighbor to the transformed coordinates. If 'bilinear'"bilinear""bilinear""bilinear""bilinear"
interpolation is chosen, MapMapMapmapmap consists of one image containing five
channels. In the first channel for each pixel in the resulting image the
linearized coordinates of the pixel in the input image is stored that is in
the upper left position relative to the transformed coordinates.
The four other channels contain the weights of the four neighboring pixels
of the transformed coordinates which are used for the bilinear interpolation,
in the following order:
2
3
4
5
The second channel, for example, contains the weights of the pixels that
lie to the upper left relative to the transformed coordinates.
If 'coord_map_sub_pix'"coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix""coord_map_sub_pix" is chosen, MapMapMapmapmap consists of
one vector field image of the semantic type 'vector_field_absolute', in
which for each pixel of the resulting image the subpixel precise
coordinates in the input image are stored.
If you want to re-use the created map in another program, you can save it as
a multi-channel image with the operator write_imagewrite_imageWriteImageWriteImagewrite_image, using the format
'tiff'"tiff""tiff""tiff""tiff".
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
List of values:
'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", 'nearest_neighbor'"nearest_neighbor""nearest_neighbor""nearest_neighbor""nearest_neighbor"
Result
gen_radial_distortion_mapgen_radial_distortion_mapGenRadialDistortionMapGenRadialDistortionMapgen_radial_distortion_map returns 2 (
H_MSG_TRUE)
if all parameter values
are correct. If necessary, an exception is raised.