Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Utility class for mask operations. It checks whether an image and a mask are compatible (spacing, orientation, etc...) and it can also crop an image to the LargestPossibleRegion of the Mask. More...
#include <mitkMaskUtilities.h>
Public Types | |
typedef MaskUtilities | Self |
typedef itk::Object | Superclass |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::Image< TPixel, VImageDimension > | ImageType |
typedef itk::Image< unsigned short, VImageDimension > | MaskType |
Public Member Functions | |
virtual const char * | GetClassName () const |
void | SetImage (ImageType *image) |
Set image. More... | |
void | SetMask (MaskType *mask) |
Set mask. More... | |
bool | CheckMaskSanity () |
Checks whether mask and image are compatible for joint access (as via iterators). Spacing and direction must be the same between the two and they must be aligned. Also, the mask must be completely inside the image. More... | |
itk::Image< TPixel, VImageDimension >::Pointer | ExtractMaskImageRegion () |
Crops the image to the LargestPossibleRegion of the mask. More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
MaskUtilities () | |
~MaskUtilities () | |
Utility class for mask operations. It checks whether an image and a mask are compatible (spacing, orientation, etc...) and it can also crop an image to the LargestPossibleRegion of the Mask.
Definition at line 15 of file mitkMaskUtilities.h.
typedef itk::SmartPointer< const Self > mitk::MaskUtilities< TPixel, VImageDimension >::ConstPointer |
Definition at line 22 of file mitkMaskUtilities.h.
typedef itk::Image<TPixel, VImageDimension> mitk::MaskUtilities< TPixel, VImageDimension >::ImageType |
Definition at line 30 of file mitkMaskUtilities.h.
typedef itk::Image<unsigned short, VImageDimension> mitk::MaskUtilities< TPixel, VImageDimension >::MaskType |
Definition at line 31 of file mitkMaskUtilities.h.
typedef itk::SmartPointer< Self > mitk::MaskUtilities< TPixel, VImageDimension >::Pointer |
Definition at line 21 of file mitkMaskUtilities.h.
typedef MaskUtilities mitk::MaskUtilities< TPixel, VImageDimension >::Self |
Standard Self typedef
Definition at line 19 of file mitkMaskUtilities.h.
typedef itk::Object mitk::MaskUtilities< TPixel, VImageDimension >::Superclass |
Definition at line 20 of file mitkMaskUtilities.h.
|
inlineprotected |
Definition at line 55 of file mitkMaskUtilities.h.
|
inlineprotected |
Definition at line 57 of file mitkMaskUtilities.h.
bool mitk::MaskUtilities< TPixel, VImageDimension >::CheckMaskSanity | ( | ) |
Checks whether mask and image are compatible for joint access (as via iterators). Spacing and direction must be the same between the two and they must be aligned. Also, the mask must be completely inside the image.
Definition at line 32 of file mitkMaskUtilities.cpp.
References mitk::eps, MITK_ERROR, and MITK_INFO.
itk::Image< TPixel, VImageDimension >::Pointer mitk::MaskUtilities< TPixel, VImageDimension >::ExtractMaskImageRegion | ( | ) |
Crops the image to the LargestPossibleRegion of the mask.
Definition at line 118 of file mitkMaskUtilities.cpp.
References MITK_ERROR, and mitk::New().
|
virtual |
Runtime information support.
|
static |
Method for creation through the object factory.
void mitk::MaskUtilities< TPixel, VImageDimension >::SetImage | ( | ImageType * | image | ) |
Set image.
Definition at line 14 of file mitkMaskUtilities.cpp.
void mitk::MaskUtilities< TPixel, VImageDimension >::SetMask | ( | MaskType * | mask | ) |
Set mask.
Definition at line 23 of file mitkMaskUtilities.cpp.