15 #ifndef itkMIDASRegionOfInterestCalculator_h
16 #define itkMIDASRegionOfInterestCalculator_h
18 #include <itkObject.h>
19 #include <itkObjectFactory.h>
34 template <
class TPixel,
unsigned int VImageDimension>
55 itkStaticConstMacro(ImageDimension,
unsigned int, VImageDimension);
76 RegionType GetPlusOrUpRegion(ImageType*
image,
Orientation currentOrientation,
int sliceNumber);
79 RegionType GetMinusOrDownRegion(ImageType*
image,
Orientation currentOrientation,
int sliceNumber);
82 RegionType GetSliceRegion(ImageType*
image,
Orientation currentOrientation,
int sliceNumber);
85 std::vector<RegionType> GetPlusOrUpRegionAsSlices(ImageType*
image,
Orientation currentOrientation,
int sliceNumber);
88 std::vector<RegionType> GetMinusOrDownRegionAsSlices(ImageType*
image,
Orientation currentOrientation,
int sliceNumber);
91 std::vector<RegionType> SplitRegionBySlices(RegionType regionOfInterest, ImageType*
image,
Orientation currentOrientation);
94 RegionType GetMinimumRegion(ImageType *
image, PixelType background);
102 void operator=(
const Self&);
105 void CheckSliceNumber(ImageType*
image,
Orientation currentOrientation,
int sliceNumber);
108 RegionType GetRegion(ImageType*
image,
Orientation currentOrientation,
int sliceNumber,
bool doSingleSlice,
bool doPlus);
111 std::vector<RegionType> GetRegionAsSlices(ImageType*
image,
Orientation currentOrientation,
int sliceNumber,
bool doSingleSlice,
bool doPlus);
117 #ifndef ITK_MANUAL_INSTANTIATION
118 #include "itkMIDASRegionOfInterestCalculator.txx"
ImageType::RegionType RegionType
Definition: itkMIDASRegionOfInterestCalculator.h:63
TPixel PixelType
Definition: itkMIDASRegionOfInterestCalculator.h:58
Class to calculate regions within an image according to MIDAS specifications, where for example we ne...
Definition: itkMIDASRegionOfInterestCalculator.h:35
virtual ~MIDASRegionOfInterestCalculator()
Definition: itkMIDASRegionOfInterestCalculator.h:98
ImageType::SizeType SizeType
Definition: niftkMakeLapUSProbeBasicModel.cxx:31
ImageType::SizeType SizeType
Definition: itkMIDASRegionOfInterestCalculator.h:62
GLenum GLsizei GLenum GLenum const GLvoid * image
Definition: glew.h:4052
Orientation
Definition: itkMIDASHelper.h:35
MIDASRegionOfInterestCalculator Self
Definition: itkMIDASRegionOfInterestCalculator.h:40
Definition: niftkITKAffineResampleImage.cxx:74
Image< TPixel, VImageDimension > ImageType
Definition: itkMIDASRegionOfInterestCalculator.h:59
ImageType::IndexType IndexType
Definition: niftkMakeLapUSProbeBasicModel.cxx:32
SmartPointer< const Self > ConstPointer
Definition: itkMIDASRegionOfInterestCalculator.h:43
ImageType::RegionType RegionType
Definition: niftkMakeLapUSProbeBasicModel.cxx:30
SmartPointer< Self > Pointer
Definition: itkMIDASRegionOfInterestCalculator.h:42
ImageType::IndexType IndexType
Definition: itkMIDASRegionOfInterestCalculator.h:61
Provides useful utility functions that could be used in multiple ITK filters.
NIFTKITK_WINEXPORT ITK_EXPORT void GetOrientationString(const itk::Matrix< double, VImageDimension, VImageDimension > &directionMatrix, std::string &orientationString)
Gets the orientation string from direction cosines, but only works for 3D.
ImageType::DirectionType DirectionType
Definition: itkMIDASRegionOfInterestCalculator.h:64
Object Superclass
Definition: itkMIDASRegionOfInterestCalculator.h:41
GLsizei const GLcharARB ** string
Definition: glew.h:5194
ImageType::Pointer ImagePointer
Definition: itkMIDASRegionOfInterestCalculator.h:60