#include <itkDirectionAlgorithm.h>
Functions that operate on image direction matrices.
Definition at line 67 of file itkDirectionAlgorithm.h.
|
| template<unsigned int VOutputDimension, typename TValue, unsigned int VInputDimension> |
| static Matrix< TValue, VOutputDimension, VOutputDimension > | CollapseDirection (const Matrix< TValue, VInputDimension, VInputDimension > &direction, const FixedArray< bool, VInputDimension > &collapseDimensions, const CollapseStrategyEnum strategy) |
| |
| template<unsigned int VOutputDimension, typename TValue = double> |
| static Matrix< TValue, VOutputDimension, VOutputDimension > | CollapseDirection (const VariableSizeMatrix< double > &direction, const std::vector< bool > &collapseDimensions, const CollapseStrategyEnum strategy) |
| |
|
| using | FlagArray = Eigen::Array<bool, Eigen::Dynamic, 1> |
| |
| template<typename TValue> |
| using | RowMajorMatrix = Eigen::Matrix<TValue, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> |
| |
◆ CollapseStrategyEnum
◆ FlagArray
◆ RowMajorMatrix
template<typename TValue>
◆ CollapseDirection() [1/2]
template<unsigned int VOutputDimension, typename TValue, unsigned int VInputDimension>
| static Matrix< TValue, VOutputDimension, VOutputDimension > itk::DirectionAlgorithm::CollapseDirection |
( |
const Matrix< TValue, VInputDimension, VInputDimension > & | direction, |
|
|
const FixedArray< bool, VInputDimension > & | collapseDimensions, |
|
|
const CollapseStrategyEnum | strategy ) |
|
inlinestatic |
Compute the direction of an image whose axes have been collapsed.
Rows and columns of direction whose collapseDimensions entry is true are removed, and the remaining sub-matrix is resolved by strategy: DIRECTIONCOLLAPSETOIDENTITY returns identity, DIRECTIONCOLLAPSETOSUBMATRIX returns the sub-matrix and throws when it is singular, and DIRECTIONCOLLAPSETOGUESS returns the sub-matrix or identity when singular. DIRECTIONCOLLAPSETOUNKOWN throws. Singularity is tested after conversion to the result's element type, which must be float or double. The number of retained axes must equal VOutputDimension.
This overload takes a direction whose dimension is known at compile time; the result has the same element type.
Definition at line 86 of file itkDirectionAlgorithm.h.
References CollapseDirectionInternal(), itk::FixedArray< TValue, VLength >::data(), and itk::Matrix< T, VRows, VColumns >::GetVnlMatrix().
◆ CollapseDirection() [2/2]
template<unsigned int VOutputDimension, typename TValue = double>
| static Matrix< TValue, VOutputDimension, VOutputDimension > itk::DirectionAlgorithm::CollapseDirection |
( |
const VariableSizeMatrix< double > & | direction, |
|
|
const std::vector< bool > & | collapseDimensions, |
|
|
const CollapseStrategyEnum | strategy ) |
|
inlinestatic |
◆ CollapseDirectionInternal() [1/2]
◆ CollapseDirectionInternal() [2/2]
The documentation for this class was generated from the following file: