opencv::gapi

Function sqrt

source
pub fn sqrt(src: &impl GMatTraitConst) -> Result<GMat>
Expand description

Calculates a square root of array elements.

The function cv::gapi::sqrt calculates a square root of each input array element. In case of multi-channel arrays, each channel is processed independently. The accuracy is approximately the same as of the built-in std::sqrt .

§Parameters

  • src: input floating-point array.

§Returns

output array of the same size and type as src.