27 template <
class TPixel,
unsigned int VImageDimension>
41 typedef itk::Image<TPixel, VImageDimension>
ImageType;
42 typedef itk::Image<unsigned short, VImageDimension>
MaskType;
47 void SetImage(
const ImageType* image);
52 void SetMask(
const MaskType* mask);
71 const ImageType* m_Image;
72 const MaskType* m_Mask;
84 #ifndef ITK_MANUAL_INSTANTIATION 85 #include <mitkMaskUtilities.tpp> itk::SmartPointer< Self > Pointer
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_DIRECTION_PRECISION
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_COORDINATE_PRECISION
constexpr double MASK_SUITABILITY_TOLERANCE_DIRECTION
constexpr double MASK_SUITABILITY_TOLERANCE_COORDINATE
void SetImage(const ImageType *image)
Set image.
itk::SmartPointer< const Self > ConstPointer
DataCollection - Class to facilitate loading/accessing structured data.
ImageType::ConstPointer ExtractMaskImageRegion()
Crops the image to the LargestPossibleRegion of the mask.
Utility class for mask operations. It checks whether an image and a mask are compatible (spacing...
void SetMask(const MaskType *mask)
Set mask.
bool CheckMaskSanity()
Checks whether mask and image are compatible for joint access (as via iterators). Spacing and directi...
itk::Image< unsigned short, VImageDimension > MaskType
~MaskUtilities() override
itk::Image< TPixel, VImageDimension > ImageType