MeVisLab Toolbox Reference
ml::CSOSmoothing Namespace Reference

Functions

MLCSO_EXPORT void smooth2DPositions (std::vector< Vector2 > &positions, const unsigned int numPositions, const unsigned int numSmoothingPasses, const float smoothingFactor, const unsigned int smoothRange)
 Smooths the given 2D positions on base of a Laplacian smoothing with a deflation correction. More...
 
MLCSO_EXPORT void smooth3DPositions (std::vector< Vector3 > &positions, const MLssize_t numPositions, bool isOpen, unsigned int numSmoothingPasses, double smoothingFactor, unsigned int smoothRange, bool displacementAdjustment)
 Smooths the given 3D positions on base of a Laplacian smoothing with a deflation correction. More...
 
MLCSO_EXPORT void smooth3DPositions (std::vector< Vector3 > &positions, bool isOpen, unsigned int numSmoothingPasses)
 Smooths the given 3D positions on base of a Laplacian smoothing. More...
 
MLssize_t getClosedCSOIndexLeavingNegative (MLssize_t i, MLssize_t j, MLssize_t numPositions)
 Helper function to compute an index into a closed CSO leaving left. More...
 
MLssize_t getClosedCSOIndexLeavingPositive (MLssize_t i, MLssize_t j, MLssize_t numPositions)
 Helper function to compute an index into a closed CSO leaving right. More...
 

Function Documentation

◆ getClosedCSOIndexLeavingNegative()

MLssize_t ml::CSOSmoothing::getClosedCSOIndexLeavingNegative ( MLssize_t  i,
MLssize_t  j,
MLssize_t  numPositions 
)

Helper function to compute an index into a closed CSO leaving left.

◆ getClosedCSOIndexLeavingPositive()

MLssize_t ml::CSOSmoothing::getClosedCSOIndexLeavingPositive ( MLssize_t  i,
MLssize_t  j,
MLssize_t  numPositions 
)

Helper function to compute an index into a closed CSO leaving right.

◆ smooth2DPositions()

MLCSO_EXPORT void ml::CSOSmoothing::smooth2DPositions ( std::vector< Vector2 > &  positions,
const unsigned int  numPositions,
const unsigned int  numSmoothingPasses,
const float  smoothingFactor,
const unsigned int  smoothRange 
)

Smooths the given 2D positions on base of a Laplacian smoothing with a deflation correction.

◆ smooth3DPositions() [1/2]

MLCSO_EXPORT void ml::CSOSmoothing::smooth3DPositions ( std::vector< Vector3 > &  positions,
bool  isOpen,
unsigned int  numSmoothingPasses 
)

Smooths the given 3D positions on base of a Laplacian smoothing.

◆ smooth3DPositions() [2/2]

MLCSO_EXPORT void ml::CSOSmoothing::smooth3DPositions ( std::vector< Vector3 > &  positions,
const MLssize_t  numPositions,
bool  isOpen,
unsigned int  numSmoothingPasses,
double  smoothingFactor,
unsigned int  smoothRange,
bool  displacementAdjustment 
)

Smooths the given 3D positions on base of a Laplacian smoothing with a deflation correction.