Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef MITK_CALCULATE_SEGMENTATION_VOLUME_H_INCLUDET_WAD
18 #define MITK_CALCULATE_SEGMENTATION_VOLUME_H_INCLUDET_WAD
19 
20 #include "mitkImageCast.h"
21 #include "mitkSegmentationSink.h"
23 
24 namespace mitk
25 {
27  {
28  public:
30 
31  protected:
32  CalculateSegmentationVolume(); // use smart pointers
33  virtual ~CalculateSegmentationVolume();
34 
35  virtual bool ReadyToRun() override;
36 
37  virtual bool ThreadedUpdateFunction() override; // will be called from a thread after calling StartAlgorithm
38 
39  template <typename TPixel, unsigned int VImageDimension>
40  void ItkImageProcessing(itk::Image<TPixel, VImageDimension> *itkImage, TPixel *dummy = NULL);
41 
42  private:
43  unsigned int m_Volume;
44 
45  Vector3D m_CenterOfMass;
46  Vector3D m_MinIndexOfBoundingBox;
47  Vector3D m_MaxIndexOfBoundingBox;
48  };
49 
50 } // namespace
51 
52 #endif
#define mitkAlgorithmNewMacro(classname)
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:44