MeVisLab Toolbox Reference
CSOSmoothing.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 
16 
17 #pragma once
18 
19 #include "MLCSOIncludes.h"
20 #include "CSOBase/CSO.h"
21 
22 
23 ML_START_NAMESPACE
24 
26 
27 namespace CSOSmoothing
28 {
31  MLCSO_EXPORT void smooth2DPositions(std::vector<Vector2>& positions, const unsigned int numPositions,
32  const unsigned int numSmoothingPasses,
33  const float smoothingFactor, const unsigned int smoothRange);
34 
35 
38  MLCSO_EXPORT void smooth3DPositions(std::vector<Vector3>& positions, const MLssize_t numPositions, bool isOpen,
39  unsigned int numSmoothingPasses,
40  double smoothingFactor, unsigned int smoothRange, bool displacementAdjustment);
41 
43  MLCSO_EXPORT void smooth3DPositions(std::vector<Vector3>& positions, bool isOpen, unsigned int numSmoothingPasses);
44 
49 }
50 
52 
53 ML_END_NAMESPACE
#define MLCSO_EXPORT
Defines export symbols for classes, so they can be used in other DLLs.
Definition: MLCSOSystem.h:23
SSIZE_T MLssize_t
The signed ML size type which is a signed 32 bit size_t on 32 bit platforms and 64 bit one on 64 bit ...
Definition: mlTypeDefs.h:654
MLssize_t getClosedCSOIndexLeavingPositive(MLssize_t i, MLssize_t j, MLssize_t numPositions)
Helper function to compute an index into a closed CSO leaving right.
MLCSO_EXPORT void smooth3DPositions(std::vector< Vector3 > &positions, bool isOpen, unsigned int numSmoothingPasses)
Smooths the given 3D positions on base of a Laplacian smoothing.
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.
MLssize_t getClosedCSOIndexLeavingNegative(MLssize_t i, MLssize_t j, MLssize_t numPositions)
Helper function to compute an index into a closed CSO leaving left.