MeVisLabToolboxReference
MeVisLab/Standard/Sources/ML/MLCSO/CSOTools/CSOSmoothing.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00005 
00010 //----------------------------------------------------------------------------------
00011 
00012 #ifndef __CSOSmoothing_H
00013 #define __CSOSmoothing_H
00014 
00015 #include "MLCSOIncludes.h"
00016 #include "CSOBase/CSO.h"
00017 
00018 
00019 ML_START_NAMESPACE
00020 
00022 
00023 class MLCSO_EXPORT CSOSmoothing
00024 {
00025 public:
00026   
00028   CSOSmoothing();
00030   ~CSOSmoothing();
00031 
00034   static void smooth2DPositions(std::vector<Vector2>& positions, const unsigned int numPositions,
00035                                 const unsigned int numSmoothingPasses,
00036                                 const float smoothingFactor, const unsigned int smoothRange);
00037 
00040   static void smooth3DPositions(std::vector<Vector3>& positions, const MLssize_t numPositions, const bool isOpen,
00041     const unsigned int numSmoothingPasses,
00042     const double smoothingFactor, const unsigned int smoothRange, bool displacementAdjustment);
00043 
00044 };
00045 
00047 
00048 ML_END_NAMESPACE
00049 
00050 #endif // __CSOSmoothing_H