NifTK
16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
|
Class, developed for MIDAS migration, that outputs an image the same size as the input, but you can specify a region, and that region is kept, and anything outside that region, set to a single background value. Used for axial cut-off. More...
Public Types | |
typedef MIDASMaskByRegionImageFilter | Self |
typedef ImageToImageFilter < TInputImage, TOutputImage > | SuperClass |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef TInputImage::IndexType | IndexType |
typedef TInputImage::SizeType | SizeType |
typedef TInputImage::RegionType | RegionType |
typedef TInputImage::PixelType | InputPixelType |
typedef TOutputImage::PixelType | OutputPixelType |
Public Member Functions | |
virtual const char * | GetClassName () const |
RegionType | GetRegion () const |
Gets the region to keep. More... | |
void | SetRegion (RegionType region) |
Sets the region to keep. More... | |
virtual void | SetOutputBackgroundValue (OutputPixelType _arg) |
virtual OutputPixelType | GetOutputBackgroundValue () const |
virtual void | SetUserSetRegion (bool _arg) |
virtual bool | GetUserSetRegion () const |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
MIDASMaskByRegionImageFilter () | |
virtual | ~MIDASMaskByRegionImageFilter () |
void | PrintSelf (std::ostream &os, Indent indent) const |
virtual void | BeforeThreadedGenerateData () |
virtual void | ThreadedGenerateData (const RegionType &outputRegionForThread, ThreadIdType threadNumber) |
Class, developed for MIDAS migration, that outputs an image the same size as the input, but you can specify a region, and that region is kept, and anything outside that region, set to a single background value. Used for axial cut-off.
Within the region, the spec is:
Input 0 | Input 1 | Input 2 | Output 0 | 0 | 0 | 0 0 | 0 | 1 | 0 0 | 1 | 0 | 1 0 | 1 | 1 | 0 1 | 0 | 0 | 1 1 | 0 | 1 | 0 1 | 1 | 0 | 1 1 | 1 | 1 | 0
and input 1 has been called the "additions" image, as if the pixel is on, it has the effect of adding to the segmentation. The second image is called the "subtractions" image, and is used for connection breaker, so if the subtractions image pixel is on, the output must be off.
typedef SmartPointer<const Self> itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::ConstPointer |
typedef TInputImage::IndexType itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::IndexType |
Standard Typedefs.
typedef TInputImage::PixelType itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::InputPixelType |
typedef TOutputImage::PixelType itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::OutputPixelType |
typedef SmartPointer<Self> itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::Pointer |
typedef TInputImage::RegionType itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::RegionType |
typedef MIDASMaskByRegionImageFilter itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs
typedef TInputImage::SizeType itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::SizeType |
typedef ImageToImageFilter<TInputImage, TOutputImage> itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::SuperClass |
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Run-time type information (and related methods)
|
virtual |
RegionType itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::GetRegion | ( | ) | const |
Gets the region to keep.
|
virtual |
|
static |
Method for creation through the object factory
|
protected |
|
virtual |
Set/Get methods to set the output background value. Default 0.
void itk::MIDASMaskByRegionImageFilter< TInputImage, TOutputImage >::SetRegion | ( | RegionType | region | ) |
Sets the region to keep.
|
virtual |
Set/Get methods to set the flag controlling whether we actually use the region or not. Defaults false.
|
protectedvirtual |