NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension > Class Template Reference

Class to calculate regions within an image according to MIDAS specifications, where for example we need to know (for Wipe+, Wipe- and PropUp and PropDown) that "plus" or "up" means anterior, right or superior and "minus" or "down" means posterior, left or inferior. More...

Inheritance diagram for itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >:
Inheritance graph
[legend]
Collaboration diagram for itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >:
Collaboration graph
[legend]

Public Types

typedef
MIDASRegionOfInterestCalculator 
Self
 
typedef Object Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef TPixel PixelType
 
typedef Image< TPixel,
VImageDimension > 
ImageType
 
typedef ImageType::Pointer ImagePointer
 
typedef ImageType::IndexType IndexType
 
typedef ImageType::SizeType SizeType
 
typedef ImageType::RegionType RegionType
 
typedef ImageType::DirectionType DirectionType
 

Public Member Functions

virtual const char * GetClassName () const
 
 itkStaticConstMacro (ImageDimension, unsigned int, VImageDimension)
 
std::string GetOrientationString (ImageType *image)
 
int GetAxis (ImageType *image, Orientation currentOrientation)
 
int GetPlusOrUpDirection (ImageType *image, Orientation currentOrientation)
 
RegionType GetPlusOrUpRegion (ImageType *image, Orientation currentOrientation, int sliceNumber)
 
RegionType GetMinusOrDownRegion (ImageType *image, Orientation currentOrientation, int sliceNumber)
 
RegionType GetSliceRegion (ImageType *image, Orientation currentOrientation, int sliceNumber)
 
std::vector< RegionTypeGetPlusOrUpRegionAsSlices (ImageType *image, Orientation currentOrientation, int sliceNumber)
 
std::vector< RegionTypeGetMinusOrDownRegionAsSlices (ImageType *image, Orientation currentOrientation, int sliceNumber)
 
std::vector< RegionTypeSplitRegionBySlices (RegionType regionOfInterest, ImageType *image, Orientation currentOrientation)
 
RegionType GetMinimumRegion (ImageType *image, PixelType background)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 MIDASRegionOfInterestCalculator ()
 
virtual ~MIDASRegionOfInterestCalculator ()
 

Detailed Description

template<class TPixel, unsigned int VImageDimension>
class itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >

Class to calculate regions within an image according to MIDAS specifications, where for example we need to know (for Wipe+, Wipe- and PropUp and PropDown) that "plus" or "up" means anterior, right or superior and "minus" or "down" means posterior, left or inferior.

Deprecated:
See MIDASGeneralSegmentorView now uses itk::ImageUpdateCopyRegionProcessor.

Member Typedef Documentation

template<class TPixel , unsigned int VImageDimension>
typedef SmartPointer<const Self> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::ConstPointer
template<class TPixel , unsigned int VImageDimension>
typedef ImageType::DirectionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::DirectionType
template<class TPixel , unsigned int VImageDimension>
typedef ImageType::Pointer itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::ImagePointer
template<class TPixel , unsigned int VImageDimension>
typedef Image<TPixel, VImageDimension> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::ImageType
template<class TPixel , unsigned int VImageDimension>
typedef ImageType::IndexType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::IndexType
template<class TPixel , unsigned int VImageDimension>
typedef TPixel itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::PixelType

Additional typedefs

template<class TPixel , unsigned int VImageDimension>
typedef SmartPointer<Self> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::Pointer
template<class TPixel , unsigned int VImageDimension>
typedef ImageType::RegionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::RegionType
template<class TPixel , unsigned int VImageDimension>
typedef MIDASRegionOfInterestCalculator itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::Self

Standard class typedefs

template<class TPixel , unsigned int VImageDimension>
typedef ImageType::SizeType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::SizeType
template<class TPixel , unsigned int VImageDimension>
typedef Object itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::Superclass

Constructor & Destructor Documentation

template<class TPixel , unsigned int VImageDimension>
itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::MIDASRegionOfInterestCalculator ( )
protected
template<class TPixel , unsigned int VImageDimension>
virtual itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::~MIDASRegionOfInterestCalculator ( )
inlineprotectedvirtual

Member Function Documentation

template<class TPixel , unsigned int VImageDimension>
int itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetAxis ( ImageType image,
Orientation  currentOrientation 
)

Retrieves the index of the image axis corresponding to the currentOrientation, in 3D will return 0,1,2 or -1 if not found.

template<class TPixel , unsigned int VImageDimension>
virtual const char* itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetClassName ( ) const
virtual

Run-time type information (and related methods).

template<class TPixel , unsigned int VImageDimension>
RegionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetMinimumRegion ( ImageType image,
PixelType  background 
)

Works out the minimum region to encapsulate data that does not contain the background value.

template<class TPixel , unsigned int VImageDimension>
RegionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetMinusOrDownRegion ( ImageType image,
Orientation  currentOrientation,
int  sliceNumber 
)

From the given image, orientation and slice number will calculate the Minus/Down region.

template<class TPixel , unsigned int VImageDimension>
std::vector<RegionType> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetMinusOrDownRegionAsSlices ( ImageType image,
Orientation  currentOrientation,
int  sliceNumber 
)

From the give image, orientation and slice number will calculate the Minus/Down region and return a list of regions corresponding to each slice, so you can iterate slice-wise.

template<class TPixel , unsigned int VImageDimension>
std::string itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetOrientationString ( ImageType image)

Retrieves the orientation string such as RPI, LAS etc.

template<class TPixel , unsigned int VImageDimension>
int itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetPlusOrUpDirection ( ImageType image,
Orientation  currentOrientation 
)

Retrieves the direction that corresponds to "Plus" or "Up", which is towards anterior, right or superior and will return +1 for increasing, -1 for decreasing or 0 if not found.

template<class TPixel , unsigned int VImageDimension>
RegionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetPlusOrUpRegion ( ImageType image,
Orientation  currentOrientation,
int  sliceNumber 
)

From the given image, orientation and slice number will calculate the Plus/Up region.

template<class TPixel , unsigned int VImageDimension>
std::vector<RegionType> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetPlusOrUpRegionAsSlices ( ImageType image,
Orientation  currentOrientation,
int  sliceNumber 
)

From the give image, orientation and slice number will calculate the Plus/Up region and return a list of regions corresponding to each slice, so you can iterate slice-wise.

template<class TPixel , unsigned int VImageDimension>
RegionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetSliceRegion ( ImageType image,
Orientation  currentOrientation,
int  sliceNumber 
)

From the given image, orientation and slice number, will calculate the region for the current slice.

template<class TPixel , unsigned int VImageDimension>
itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::itkStaticConstMacro ( ImageDimension  ,
unsigned  int,
VImageDimension   
)

Dimension of the image. This constant is used by functions that are templated over image type (as opposed to being templated over pixel type and dimension) when they need compile time access to the dimension of the image.

template<class TPixel , unsigned int VImageDimension>
static Pointer itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::New ( )
static

Method for creation through the object factory.

template<class TPixel , unsigned int VImageDimension>
std::vector<RegionType> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::SplitRegionBySlices ( RegionType  regionOfInterest,
ImageType image,
Orientation  currentOrientation 
)

Takes a given region of interest, and splits it down into slices according to orientation.


The documentation for this class was generated from the following file: