Math and statistics » Trigonometric operators module

Monadic and dyadic image trigonometric operators and other complex functions.

Contents

Functions

void dip::Atan2(dip::Image const& y, dip::Image const& x, dip::Image& out)
Computes the four-quadrant arc tangent of y/x.
void dip::Hypot(dip::Image const& a, dip::Image const& b, dip::Image& out)
Computes the square root of the sum of the squares of corresponding samples in a and b.

Function documentation

void dip::Atan2(dip::Image const& y, dip::Image const& x, dip::Image& out)

Computes the four-quadrant arc tangent of y/x.

The operation can be understood as the angle of the vector formed by the two input images. The result is always in the range \([-\pi,\pi]\) . The inputs must be a real type.

void dip::Hypot(dip::Image const& a, dip::Image const& b, dip::Image& out)

Computes the square root of the sum of the squares of corresponding samples in a and b.

The computation is performed carefully, so there is no undue overflow or underflow at intermediate stages of the computation. The inputs must be a real type.