Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Executes a boolean operation on two different segmentations. More...
#include <mitkBooleanOperation.h>
Public Types | |
enum | Type { None, Difference, Intersection, Union } |
Public Member Functions | |
BooleanOperation (Type type, Image::Pointer segmentationA, Image::Pointer segmentationB, unsigned int time=0) | |
~BooleanOperation () | |
LabelSetImage::Pointer | GetResult () const |
Executes a boolean operation on two different segmentations.
All parameters of the boolean operations must be specified during construction. The actual operation is executed when calling GetResult().
Definition at line 26 of file mitkBooleanOperation.h.
Enumerator | |
---|---|
None | |
Difference | |
Intersection | |
Union |
Definition at line 29 of file mitkBooleanOperation.h.
mitk::BooleanOperation::BooleanOperation | ( | Type | type, |
Image::Pointer | segmentationA, | ||
Image::Pointer | segmentationB, | ||
unsigned int | time = 0 |
||
) |
Definition at line 44 of file mitkBooleanOperation.cpp.
mitk::BooleanOperation::~BooleanOperation | ( | ) |
Definition at line 53 of file mitkBooleanOperation.cpp.
mitk::LabelSetImage::Pointer mitk::BooleanOperation::GetResult | ( | ) | const |
Definition at line 57 of file mitkBooleanOperation.cpp.
References CastTo3DItkImage(), Difference, Intersection, mitkThrow, mitk::LabelSetImage::New(), mitk::Image::New(), and Union.