module #include "diplib/math.h"
Trigonometric operators Monadic and dyadic image trigonometric operators and other complex functions.
Contents
 Reference
Functions

void dip::
Atan2 (dip::Image const& y, dip::Image const& x, dip::Image& out)  Computes the fourquadrant 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
andb
.
Function documentation
void
dip::Atan2 (dip::Image const& y,
dip::Image const& x,
dip::Image& out)
Computes the fourquadrant 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 . 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.