C++ OpenCV cv::pow()














































C++ OpenCV cv::pow()



 pow()

Description:
The pow function raises every array element to a power. For an integer array the power is calculated normally.For a non-integer power exponent, the absolute values of input array elements are used. It is possible to get true values for negative values using some extra operations.For non-integer p, the absolute value of the source value is computed first, and then raised to the power p (so only real values are returned). For some special values of p, such as integer values, or , special algorithms are used, resulting in faster computation.

void cv::pow(
cv::InputArray  src,            // Input array  
double p,                      // power variable for exponentiation  
cv::OutputArray dst           // For displaying the result of the array.
); 


Comments