NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
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...
Public Types | |
typedef MIDASRegionOfInterestCalculator | Self |
typedef Object | Superclass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
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 |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
MIDASRegionOfInterestCalculator () | |
virtual | ~MIDASRegionOfInterestCalculator () |
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.
typedef SmartPointer<const Self> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::ConstPointer |
typedef ImageType::DirectionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::DirectionType |
typedef ImageType::Pointer itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::ImagePointer |
typedef Image<TPixel, VImageDimension> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::ImageType |
typedef ImageType::IndexType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::IndexType |
typedef TPixel itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::PixelType |
Additional typedefs
typedef SmartPointer<Self> itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::Pointer |
typedef ImageType::RegionType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::RegionType |
typedef MIDASRegionOfInterestCalculator itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::Self |
Standard class typedefs
typedef ImageType::SizeType itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::SizeType |
typedef Object itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::Superclass |
|
protected |
|
inlineprotectedvirtual |
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.
|
virtual |
Run-time type information (and related methods).
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.
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.
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.
std::string itk::MIDASRegionOfInterestCalculator< TPixel, VImageDimension >::GetOrientationString | ( | ImageType * | image | ) |
Retrieves the orientation string such as RPI, LAS etc.
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.
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.
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.
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.
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.
|
static |
Method for creation through the object factory.
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.