pub fn perspective_transform(src: &dyn core::ToInputArray, dst: &mut dyn core::ToOutputArray, m: &dyn core::ToInputArray) -> Result<()> {
	input_array_arg!(src);
	output_array_arg!(dst);
	input_array_arg!(m);
	unsafe { sys::cv_perspectiveTransform_const__InputArrayX_const__OutputArrayX_const__InputArrayX(src.as_raw__InputArray(), dst.as_raw__OutputArray(), m.as_raw__InputArray()) }.into_result()
}
/// Performs the perspective matrix transformation of vectors.
/// 
/// The function cv::perspectiveTransform transforms every element of src by
/// treating it as a 2D or 3D vector, in the following way:
/// ![block formula](https://latex.codecogs.com/png.latex?%28x%2C%20y%2C%20z%29%20%20%5Crightarrow%20%28x%27%2Fw%2C%20y%27%2Fw%2C%20z%27%2Fw%29)
/// where
/// ![block formula](https://latex.codecogs.com/png.latex?%28x%27%2C%20y%27%2C%20z%27%2C%20w%27%29%20%3D%20%20%5Ctexttt%7Bmat%7D%20%5Ccdot%20%5Cbegin%7Bbmatrix%7D%20x%20%26%20y%20%26%20z%20%26%201%20%20%5Cend%7Bbmatrix%7D)
/// and
/// ![block formula](https://latex.codecogs.com/png.latex?w%20%3D%20%20%5Cleft%5C%7B%20%5Cbegin%7Barray%7D%7Bl%20l%7D%20w%27%20%26%20%5Cmbox%7Bif%20%5C%28w%27%20%5Cne%200%5C%29%7D%5C%5C%20%5Cinfty%20%26%20%5Cmbox%7Botherwise%7D%5C%5C%20%5Cend%7Barray%7D%20%5Cright%2E)
/// 
/// Here a 3D vector transformation is shown. In case of a 2D vector
/// transformation, the z component is omitted.
/// 
/// 
/// Note: The function transforms a sparse set of 2D or 3D vectors. If you
/// want to transform an image using perspective transformation, use
/// warpPerspective . If you have an inverse problem, that is, you want to
/// compute the most probable perspective transformation out of several
/// pairs of corresponding points, you can use getPerspectiveTransform or
/// findHomography .
/// ## Parameters
/// * src: input two-channel or three-channel floating-point array; each
/// element is a 2D/3D vector to be transformed.
/// * dst: output array of the same size and type as src.
/// * m: 3x3 or 4x4 floating-point transformation matrix.
/// ## See also
/// transform, warpPerspective, getPerspectiveTransform, findHomography
Performs the perspective matrix transformation of vectors.
The function cv::perspectiveTransform transforms every element of src by
treating it as a 2D or 3D vector, in the following way:
[block formula]
where
[block formula]
and
[block formula]

Here a 3D vector transformation is shown. In case of a 2D vector
transformation, the z component is omitted.

The function transforms a sparse set of 2D or 3D vectors. If you
want to transform an image using perspective transformation, use
warpPerspective . If you have an inverse problem, that is, you want to
compute the most probable perspective transformation out of several
pairs of corresponding points, you can use getPerspectiveTransform or
findHomography .
Performs the perspective matrix transformation of vectors . The function cv :: perspectiveTransform transforms every element of src by treating it as a 2D or 3D vector in the following way : [ block formula ] where [ block formula ] and [ block formula ] Here a 3D vector transformation is shown . In case of a 2D vector transformation the z component is omitted . The function transforms a sparse set of 2D or 3D vectors . If you want to transform an image using perspective transformation use warpPerspective . If you have an inverse problem that is you want to compute the most probable perspective transformation out of several pairs of corresponding points you can use getPerspectiveTransform or findHomography .
pub fn perspective_transform(src: &dyn core::ToInputArray, dst: &mut dyn core::ToOutputArray, m: &dyn core::ToInputArray) -> Result<()> {
	input_array_arg!(src);
	output_array_arg!(dst);
	input_array_arg!(m);
	unsafe { sys::cv_perspectiveTransform_const__InputArrayX_const__OutputArrayX_const__InputArrayX(src.as_raw__InputArray(), dst.as_raw__OutputArray(), m.as_raw__InputArray()) }.into_result()
}
pub fn perspective_transform ( src : & dyn core :: ToInputArray , dst : & mut dyn core :: ToOutputArray , m : & dyn core :: ToInputArray ) -> Result < ( ) > { input_array_arg ! ( src ) ; output_array_arg ! ( dst ) ; input_array_arg ! ( m ) ; unsafe { sys :: cv_perspectiveTransform_const__InputArrayX_const__OutputArrayX_const__InputArrayX ( src . as_raw__InputArray ( ) , dst . as_raw__OutputArray ( ) , m . as_raw__InputArray ( ) ) } . into_result ( ) }
Performs the perspective matrix transformation of vectors.
Performs the perspective matrix transformation of vectors .
src
&dyn core::ToInputArray
dst
&mut dyn core::ToOutputArray
m
&dyn core::ToInputArray
see also
transform, warpPerspective, getPerspectiveTransform, findHomography
transform warpPerspective getPerspectiveTransform findHomography