Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
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
"
22
#include <
MitkSegmentationExports.h
>
23
24
namespace
mitk
25
{
26
class
MITKSEGMENTATION_EXPORT
CalculateSegmentationVolume
:
public
SegmentationSink
27
{
28
public
:
29
mitkClassMacro
(
CalculateSegmentationVolume
,
SegmentationSink
)
mitkAlgorithmNewMacro
(
CalculateSegmentationVolume
);
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
mitkAlgorithmNewMacro
#define mitkAlgorithmNewMacro(classname)
Definition:
mitkNonBlockingAlgorithm.h:43
mitk::Vector< ScalarType, 3 >
mitk::CalculateSegmentationVolume
Definition:
mitkCalculateSegmentationVolume.h:26
mitkImageCast.h
MITKSEGMENTATION_EXPORT
#define MITKSEGMENTATION_EXPORT
Definition:
MitkSegmentationExports.h:15
mitk
DataCollection - Class to facilitate loading/accessing structured data.
Definition:
GeometryOverview.dox:1
mitk::SegmentationSink
Definition:
mitkSegmentationSink.h:25
mitkClassMacro
#define mitkClassMacro(className, SuperClassName)
Definition:
mitkCommon.h:44
MitkSegmentationExports.h
mitkSegmentationSink.h
git
MITK
Modules
Segmentation
Algorithms
mitkCalculateSegmentationVolume.h
Generated on Fri Feb 3 2017 20:51:54 for Medical Imaging Interaction Toolkit by
1.8.9.1