MeVisLab Toolbox Reference
mlStdDeviationFilter.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 
15 
16 #if !defined(__mlStdDeviationFilter_H)
17 #define __mlStdDeviationFilter_H
18 
19 // ML-includes
20 #include "mlInitSystemKernel.h"
21 #include "mlKernelModule.h"
22 
23 ML_START_NAMESPACE
24 
25  //-------------------------------------------------------------------------
33  //-------------------------------------------------------------------------
35 
36  public:
37 
38  //-------------------------------------------------------------------
56  //-------------------------------------------------------------------
58 
61  BoolField *getCalcVarianceFld() { return _calcVarianceFld; }
62 
63  protected:
64 
66  void calculateOutputImageProperties(int outputIndex, PagedImage* outputImage) override;
67 
68 
75 
78  template <typename DATATYPE>
79  void calcRow(MLsoffset *indexTab,
80  size_t indexTabSize,
81  MLsoffset srcVoxelOffset,
82  size_t numVox,
83  DATATYPE *inCursor,
84  DATATYPE *outCursor,
85  const ImageVector &/*rowStart*/);
86 
87  private:
88 
91  BoolField *_calcVarianceFld;
92 
93 
99  };
100 
101 ML_END_NAMESPACE
102 
103 #endif //of __mlStdDeviationFilter_H
104 
105 
Field to encapsulate a boolean value.
Definition: mlFields.h:62
The typically used convenience class to apply a kernel to an image.
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
This class is a kernel filtering operator, which calculates the standard deviation in the (defined by...
StdDeviationFilter()
Constructor.
CALC_ROW_H()
The implementation of the calculateOutputSubImage() method overloaded from Module is done in this mac...
void calcRow(MLsoffset *indexTab, size_t indexTabSize, MLsoffset srcVoxelOffset, size_t numVox, DATATYPE *inCursor, DATATYPE *outCursor, const ImageVector &)
In this virtual template method the filtering of one row needs to be implemented.
void calculateOutputImageProperties(int outputIndex, PagedImage *outputImage) override
Computes the output image properties for output outIndex.
BoolField * getCalcVarianceFld()
If enabled then the variance is calculated instead of the standard deviation.
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
#define MLKERNELEXPORT
Includes files used in many parts of the dll, defined dll-specific macros and controls any system dep...
MLint MLsoffset
Signed ML offset type which is a 32 bit signed integer on 32 bit platforms and a 64 bit integer on 64...
Definition: mlTypeDefs.h:650