Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitkCalculateSegmentationVolume.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef MITK_CALCULATE_SEGMENTATION_VOLUME_H_INCLUDET_WAD
14 #define MITK_CALCULATE_SEGMENTATION_VOLUME_H_INCLUDET_WAD
15 
16 #include "mitkImageCast.h"
17 #include "mitkSegmentationSink.h"
19 
20 namespace mitk
21 {
23  {
24  public:
26 
27  protected:
28  CalculateSegmentationVolume(); // use smart pointers
29  ~CalculateSegmentationVolume() override;
30 
31  bool ReadyToRun() override;
32 
33  bool ThreadedUpdateFunction() override; // will be called from a thread after calling StartAlgorithm
34 
35  template <typename TPixel, unsigned int VImageDimension>
36  void ItkImageProcessing(itk::Image<TPixel, VImageDimension> *itkImage, TPixel *dummy = nullptr);
37 
38  private:
39  unsigned int m_Volume;
40 
41  Vector3D m_CenterOfMass;
42  Vector3D m_MinIndexOfBoundingBox;
43  Vector3D m_MaxIndexOfBoundingBox;
44  };
45 
46 } // namespace
47 
48 #endif
#define mitkAlgorithmNewMacro(classname)
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40