projective_trans_image_size ( Image : TransImage : HomMat2D, Interpolation, Width, Height, TransformRegion : )

Apply a projective transformation to an image and specify the output image size.

projective_trans_image_size applies the projective transformation (homography) determined by the homogeneous transformation matrix HomMat2D on the input image Image and stores the result into the output image TransImage.

TransImage will be clipped at the output dimensions HeightxWidth. Apart from this, projective_trans_image_size is identical to its alternative version projective_trans_image.


Parameters

Image (input_object)
(multichannel-)image(-array) -> object : byte / uint2 / real
Input image.

TransImage (output_object)
(multichannel-)image(-array) -> object : byte / uint2 / real
Output image.

HomMat2D (input_control)
hom_mat2d-array -> real
Homogeneous projective transformation matrix.

Interpolation (input_control)
string -> string
Interpolation method for the transformation.
Default value: 'bilinear'
List of values: 'nearest_neighbor', 'bilinear'

Width (input_control)
extent.x -> integer
Output image width.

Height (input_control)
extent.y -> integer
Output image height.

TransformRegion (input_control)
string -> string
Should the domain of the input image also be transformed?
Default value: 'false'
List of values: 'true', 'false'


Parallelization Information

projective_trans_image_size is reentrant and automatically parallelized (on tuple level, channel level).


Possible Predecessors

vector_to_proj_hom_mat2d, hom_vector_to_proj_hom_mat2d, proj_match_points_ransac, hom_mat3d_project


See also

projective_trans_image, projective_trans_contour_xld, projective_trans_region, projective_trans_point_2d, projective_trans_pixel


Module

Foundation



Copyright © 1996-2008 MVTec Software GmbH