supereight
|
Helper functions for Eigen objects. More...
Functions | |
template<typename ScalarT , int Dim> | |
Eigen::AlignedBox< ScalarT, Dim > | dilate_erode (const Eigen::AlignedBox< ScalarT, Dim > &box, const ScalarT distance) |
Morphologically dilate or erode an axis aligned box by some distance . | |
template<typename ScalarT , int Mode, int Options> | |
Eigen::AlignedBox< ScalarT, 3 > | transform (const Eigen::Transform< ScalarT, 3, Mode, Options > &T_BA, const Eigen::AlignedBox< ScalarT, 3 > &box_A) |
Transform a 3D axis aligned box box_A expressed in frame A to frame B using the transform T_BA . | |
template<typename T , typename U , typename V > | |
void | clamp (Eigen::MatrixBase< T > &x, const Eigen::MatrixBase< U > &low, const Eigen::MatrixBase< V > &high) |
Clamp the coefficients of v between those of low and high . | |
template<typename T , typename U , typename V > | |
void | clamp (Eigen::ArrayBase< T > &x, const Eigen::ArrayBase< U > &low, const Eigen::ArrayBase< V > &high) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Helper functions for Eigen objects.
Eigen::AlignedBox< ScalarT, Dim > se::eigen::dilate_erode | ( | const Eigen::AlignedBox< ScalarT, Dim > & | box, |
const ScalarT | distance | ||
) |
Morphologically dilate or erode an axis aligned box
by some distance
.
If distance
is positive then box
will be dilated (increasing its volume), otherwise it will be eroded (decreasing its volume).
Eigen::AlignedBox< ScalarT, 3 > se::eigen::transform | ( | const Eigen::Transform< ScalarT, 3, Mode, Options > & | T_BA, |
const Eigen::AlignedBox< ScalarT, 3 > & | box_A | ||
) |
Transform a 3D axis aligned box box_A
expressed in frame A to frame B using the transform T_BA
.
void se::eigen::clamp | ( | Eigen::MatrixBase< T > & | x, |
const Eigen::MatrixBase< U > & | low, | ||
const Eigen::MatrixBase< V > & | high | ||
) |
Clamp the coefficients of v
between those of low
and high
.