ITK
4.13.0
Insight Segmentation and Registration Toolkit
|
#include <itkSliceImageFilter.h>
Slices an image based on a starting index and a stopping index, and a step size.
This class is designed to facilitate the implementation of extended sliced based indexing into images.
The input and output image must be of the same dimension.
The input parameters are a starting and stopping index as well as a stepping size. The starting index indicates the first pixels to be used and for each dimension the index is incremented by the step until the index is equal to or "beyond" the stopping index. If the step is negative then the image will be reversed in the dimension, and the stopping index is expected to be less then the starting index. If the stopping index is already beyond the starting index then an image of size zero will be returned.
The output image's starting index is always zero. The origin is the physical location of the starting index. The output directions cosine matrix is that of the input but with sign changes matching that of the step's sign.
Definition at line 56 of file itkSliceImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | ImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
IndexType | m_Start |
ArrayType | m_Step |
IndexType | m_Stop |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(OutputImageDimension), itkGetStaticConstMacro(InputImageDimension) > | InputToOutputRegionCopierType |
typedef ImageToImageFilterDetail::ImageRegionCopier < itkGetStaticConstMacro(InputImageDimension), itkGetStaticConstMacro(OutputImageDimension) > | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TOutputImage > | |
static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
static ITK_THREAD_RETURN_TYPE | ThreaderCallback (void *arg) |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
typedef FixedArray< int, ImageDimension > itk::SliceImageFilter< TInputImage, TOutputImage >::ArrayType |
Definition at line 96 of file itkSliceImageFilter.h.
typedef SmartPointer< const Self > itk::SliceImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 64 of file itkSliceImageFilter.h.
typedef InputImageType::IndexType itk::SliceImageFilter< TInputImage, TOutputImage >::IndexType |
Definition at line 94 of file itkSliceImageFilter.h.
typedef InputIndexType::IndexValueType itk::SliceImageFilter< TInputImage, TOutputImage >::IndexValueType |
Definition at line 95 of file itkSliceImageFilter.h.
typedef InputImageType::ConstPointer itk::SliceImageFilter< TInputImage, TOutputImage >::InputImageConstPointer |
Definition at line 77 of file itkSliceImageFilter.h.
typedef InputImageType::Pointer itk::SliceImageFilter< TInputImage, TOutputImage >::InputImagePointer |
Definition at line 76 of file itkSliceImageFilter.h.
typedef TInputImage itk::SliceImageFilter< TInputImage, TOutputImage >::InputImageType |
Definition at line 74 of file itkSliceImageFilter.h.
typedef TInputImage::IndexType itk::SliceImageFilter< TInputImage, TOutputImage >::InputIndexType |
Definition at line 80 of file itkSliceImageFilter.h.
typedef OutputImageType::Pointer itk::SliceImageFilter< TInputImage, TOutputImage >::OutputImagePointer |
Definition at line 75 of file itkSliceImageFilter.h.
typedef TOutputImage::RegionType itk::SliceImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Typedef to describe the output image region type.
Definition at line 84 of file itkSliceImageFilter.h.
typedef TOutputImage itk::SliceImageFilter< TInputImage, TOutputImage >::OutputImageType |
Typedef to images
Definition at line 70 of file itkSliceImageFilter.h.
typedef TOutputImage::IndexType itk::SliceImageFilter< TInputImage, TOutputImage >::OutputIndexType |
Definition at line 79 of file itkSliceImageFilter.h.
typedef TOutputImage::OffsetType itk::SliceImageFilter< TInputImage, TOutputImage >::OutputOffsetType |
Definition at line 81 of file itkSliceImageFilter.h.
typedef SmartPointer< Self > itk::SliceImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 63 of file itkSliceImageFilter.h.
typedef SliceImageFilter itk::SliceImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 61 of file itkSliceImageFilter.h.
typedef ImageToImageFilter< TInputImage, TOutputImage > itk::SliceImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 62 of file itkSliceImageFilter.h.
|
protected |
Begin concept checking End concept checking
|
inlineoverrideprotected |
Definition at line 132 of file itkSliceImageFilter.h.
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
|
overrideprotectedvirtual |
What is the input requested region that is required to produce the output requested region? The base assumption for image processing filters is that the input requested region can be set to match the output requested region. If a filter requires more input (for instance a filter that uses neighborhoods needs more input than output to avoid introducing artificial boundary conditions) or less input (for instance a magnify filter) will have to override this method. In doing so, it should call its superclass' implementation as its first step. Note that imaging filters operate differently than the classes to this point in the class hierarchy. Up till now, the base assumption has been that the largest possible region will be requested of the input.
This implementation of GenerateInputRequestedRegion() only processes the inputs that are a subclass of the ImageBase<InputImageDimension>. If an input is another type of DataObject (including an Image of a different dimension), they are skipped by this method. The subclasses of ImageToImageFilter are responsible for providing an implementation of GenerateInputRequestedRegion() when there are multiple inputs of different types.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
overrideprotectedvirtual |
SliceImageFilter produces an image which is a different resolution and with a different pixel spacing than its input image.
Reimplemented from itk::ProcessObject.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the first index extracted from the input image
|
virtual |
Set/Get the stride of indexes extracted
An exception will be generated if 0.
|
virtual |
Set/Get the excluded end of the range
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the first index extracted from the input image
void itk::SliceImageFilter< TInputImage, TOutputImage >::SetStart | ( | IndexValueType | start | ) |
Set/Get the first index extracted from the input image
|
virtual |
Set/Get the stride of indexes extracted
An exception will be generated if 0.
void itk::SliceImageFilter< TInputImage, TOutputImage >::SetStep | ( | int | step | ) |
Set/Get the stride of indexes extracted
An exception will be generated if 0.
|
virtual |
Set/Get the excluded end of the range
void itk::SliceImageFilter< TInputImage, TOutputImage >::SetStop | ( | IndexValueType | stop | ) |
Set/Get the excluded end of the range
|
overrideprotectedvirtual |
SliceImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a ThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling ThreadedGenerateData(). ThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImage >.
|
overrideprotectedvirtual |
Verifies that the input images occupy the same physical space and the each index is at the same physical location.
The default implementation of the PropagateRequestedRegion methods copies the index and size from the output to the input. This makes an implicit assumption that the images occupy the same physical location at each voxel. This method enforces that they are the same.
This implementation verifies that all input images of InputImageDimensions have the same origin, spacing and direction.
Filters which do not expect all input images to be at the same physical location should over-ride this method. Also filters whose inputs are different dimensions may need to overide this method.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
static |
ImageDimension enumeration.
Definition at line 88 of file itkSliceImageFilter.h.
|
private |
Definition at line 159 of file itkSliceImageFilter.h.
|
private |
Definition at line 163 of file itkSliceImageFilter.h.
|
private |
Definition at line 162 of file itkSliceImageFilter.h.
|
static |
ImageDimension enumeration.
Definition at line 90 of file itkSliceImageFilter.h.