13 #ifndef mitkMaskUtilities_h
14 #define mitkMaskUtilities_h
37 template <
class TPixel,
unsigned int VImageDimension>
52 typedef itk::Image<TPixel, VImageDimension>
ImageType;
54 typedef itk::Image<unsigned short, VImageDimension>
MaskType;
108 #ifndef ITK_MANUAL_INSTANTIATION
109 #include <mitkMaskUtilities.tpp>
Utility class for validating and adapting masks for use with images.
void SetMask(const MaskType *mask)
Set the mask image.
itk::SmartPointer< Self > Pointer
itk::Image< TPixel, VImageDimension > ImageType
ITK image type with the given pixel type and dimension.
itk::Image< unsigned short, VImageDimension > MaskType
Mask image type (unsigned short) with the given dimension.
itk::SmartPointer< const Self > ConstPointer
ImageType::ConstPointer ExtractMaskImageRegion()
Crop the image to the LargestPossibleRegion of the mask.
void SetImage(const ImageType *image)
Set the image to validate against the mask.
bool CheckMaskSanity()
Check whether the mask and image are geometrically compatible.
~MaskUtilities() override
Find image slices visible on a given plane.
constexpr double MASK_SUITABILITY_TOLERANCE_DIRECTION
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_DIRECTION_PRECISION
The default tolerance for the comparison of direction matrix equality.
constexpr double MASK_SUITABILITY_TOLERANCE_COORDINATE
constexpr double NODE_PREDICATE_GEOMETRY_DEFAULT_CHECK_COORDINATE_PRECISION
The default tolerance for the comparison of spatial/world coordinate equality.