pub fn pow(src: &dyn core::ToInputArray, power: f64, dst: &mut dyn core::ToOutputArray) -> Result<()> {
	input_array_arg!(src);
	output_array_arg!(dst);
	unsafe { sys::cv_pow_const__InputArrayX_double_const__OutputArrayX(src.as_raw__InputArray(), power, dst.as_raw__OutputArray()) }.into_result()
}
/// Raises every array element to a power.
/// 
/// The function cv::pow raises every element of the input array to power :
/// ![block formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bdst%7D%20%28I%29%20%3D%20%20%5Cfork%7B%5Ctexttt%7Bsrc%7D%28I%29%5E%7Bpower%7D%7D%7Bif%20%5C%28%5Ctexttt%7Bpower%7D%5C%29%20is%20integer%7D%7B%7C%5Ctexttt%7Bsrc%7D%28I%29%7C%5E%7Bpower%7D%7D%7Botherwise%7D)
/// 
/// So, for a non-integer power exponent, the absolute values of input array
/// elements are used. However, it is possible to get true values for
/// negative values using some extra operations. In the example below,
/// computing the 5th root of array src shows:
/// ```ignore
///    Mat mask = src < 0;
///    pow(src, 1./5, dst);
///    subtract(Scalar::all(0), dst, dst, mask);
/// ```
/// 
/// For some values of power, such as integer values, 0.5 and -0.5,
/// specialized faster algorithms are used.
/// 
/// Special values (NaN, Inf) are not handled.
/// ## Parameters
/// * src: input array.
/// * power: exponent of power.
/// * dst: output array of the same size and type as src.
/// ## See also
/// sqrt, exp, log, cartToPolar, polarToCart
Raises every array element to a power.
The function cv::pow raises every element of the input array to power :
[block formula]

So, for a non-integer power exponent, the absolute values of input array
elements are used. However, it is possible to get true values for
negative values using some extra operations.

For some values of power, such as integer values, 0.5 and -0.5,
specialized faster algorithms are used.

Special values (NaN, Inf) are not handled.
Raises every array element to a power . The function cv :: pow raises every element of the input array to power : [ block formula ] So for a non - integer power exponent the absolute values of input array elements are used . However it is possible to get true values for negative values using some extra operations . For some values of power such as integer values 0 . 5 and - 0 . 5 specialized faster algorithms are used . Special values ( NaN Inf ) are not handled .
pub fn pow(src: &dyn core::ToInputArray, power: f64, dst: &mut dyn core::ToOutputArray) -> Result<()> {
	input_array_arg!(src);
	output_array_arg!(dst);
	unsafe { sys::cv_pow_const__InputArrayX_double_const__OutputArrayX(src.as_raw__InputArray(), power, dst.as_raw__OutputArray()) }.into_result()
}
pub fn pow ( src : & dyn core :: ToInputArray , power : f64 , dst : & mut dyn core :: ToOutputArray ) -> Result < ( ) > { input_array_arg ! ( src ) ; output_array_arg ! ( dst ) ; unsafe { sys :: cv_pow_const__InputArrayX_double_const__OutputArrayX ( src . as_raw__InputArray ( ) , power , dst . as_raw__OutputArray ( ) ) } . into_result ( ) }
Raises every array element to a power.
Raises every array element to a power .
src
&dyn core::ToInputArray
power
f64
dst
&mut dyn core::ToOutputArray
see also
sqrt, exp, log, cartToPolar, polarToCart
sqrt exp log cartToPolar polarToCart