ITK
4.10.0
Insight Segmentation and Registration Toolkit
|
#include <itkCropImageFilter.h>
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of the largest possible region.
CropImageFilter changes the image boundary of an image by removing pixels outside the target region. The target region is not specified in advance, but calculated in BeforeThreadedGenerateData().
This filter uses ExtractImageFilter to perform the cropping.
Definition at line 43 of file itkCropImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ExtractImageFilter< TInputImage, TOutputImage > | |
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 | InputImageDimension = Superclass::InputImageDimension |
static const unsigned int | OutputImageDimension = Superclass::OutputImageDimension |
Static Public Attributes inherited from itk::ExtractImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = TInputImage::ImageDimension |
static const unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::InPlaceImageFilter< TInputImage, TOutputImage > | |
static const unsigned int | InputImageDimension = 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 Member Functions | |
CropImageFilter (const Self &) ITK_DELETE_FUNCTION | |
void | operator= (const Self &) ITK_DELETE_FUNCTION |
Private Attributes | |
SizeType | m_LowerBoundaryCropSize |
SizeType | m_UpperBoundaryCropSize |
typedef SmartPointer< const Self > itk::CropImageFilter< TInputImage, TOutputImage >::ConstPointer |
Definition at line 51 of file itkCropImageFilter.h.
typedef Superclass::InputImageIndexType itk::CropImageFilter< TInputImage, TOutputImage >::InputImageIndexType |
Definition at line 69 of file itkCropImageFilter.h.
typedef Superclass::InputImagePixelType itk::CropImageFilter< TInputImage, TOutputImage >::InputImagePixelType |
Definition at line 65 of file itkCropImageFilter.h.
typedef Superclass::InputImageRegionType itk::CropImageFilter< TInputImage, TOutputImage >::InputImageRegionType |
Definition at line 61 of file itkCropImageFilter.h.
typedef Superclass::InputImageSizeType itk::CropImageFilter< TInputImage, TOutputImage >::InputImageSizeType |
Definition at line 71 of file itkCropImageFilter.h.
typedef Superclass::OutputImageIndexType itk::CropImageFilter< TInputImage, TOutputImage >::OutputImageIndexType |
Typedef to describe the output and input image index and size types.
Definition at line 68 of file itkCropImageFilter.h.
typedef Superclass::OutputImagePixelType itk::CropImageFilter< TInputImage, TOutputImage >::OutputImagePixelType |
Typedef to describe the type of pixel.
Definition at line 64 of file itkCropImageFilter.h.
typedef Superclass::OutputImageRegionType itk::CropImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Typedef to describe the output and input image region types.
Definition at line 57 of file itkCropImageFilter.h.
typedef Superclass::OutputImageSizeType itk::CropImageFilter< TInputImage, TOutputImage >::OutputImageSizeType |
Definition at line 70 of file itkCropImageFilter.h.
typedef SmartPointer< Self > itk::CropImageFilter< TInputImage, TOutputImage >::Pointer |
Definition at line 50 of file itkCropImageFilter.h.
typedef CropImageFilter itk::CropImageFilter< TInputImage, TOutputImage >::Self |
Standard class typedefs.
Definition at line 48 of file itkCropImageFilter.h.
typedef InputImageSizeType itk::CropImageFilter< TInputImage, TOutputImage >::SizeType |
Definition at line 72 of file itkCropImageFilter.h.
typedef ExtractImageFilter< TInputImage, TOutputImage > itk::CropImageFilter< TInputImage, TOutputImage >::Superclass |
Definition at line 49 of file itkCropImageFilter.h.
|
inlineprotected |
Definition at line 104 of file itkCropImageFilter.h.
References itk::CropImageFilter< TInputImage, TOutputImage >::m_LowerBoundaryCropSize, itk::CropImageFilter< TInputImage, TOutputImage >::m_UpperBoundaryCropSize, and itk::ExtractImageFilter< TInputImage, TOutputImage >::SetDirectionCollapseToSubmatrix().
Referenced by itk::CropImageFilter< TInputImage, TOutputImage >::~CropImageFilter().
|
inlineprotected |
Definition at line 111 of file itkCropImageFilter.h.
References itk::CropImageFilter< TInputImage, TOutputImage >::CropImageFilter(), itk::CropImageFilter< TInputImage, TOutputImage >::GenerateOutputInformation(), itk::CropImageFilter< TInputImage, TOutputImage >::operator=(), and itk::CropImageFilter< TInputImage, TOutputImage >::PrintSelf().
|
private |
|
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::ExtractImageFilter< TInputImage, TOutputImage >.
|
overrideprotectedvirtual |
ExtractImageFilter can produce an image which is a different resolution than its input image. As such, ExtractImageFilter needs to provide an implementation for GenerateOutputInformation() in order to inform the pipeline execution model. The original documentation of this method is below.
Reimplemented from itk::ExtractImageFilter< TInputImage, TOutputImage >.
Referenced by itk::CropImageFilter< TInputImage, TOutputImage >::~CropImageFilter().
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ExtractImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
|
static |
Method for creation through the object factory.
|
private |
|
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::ExtractImageFilter< TInputImage, TOutputImage >.
Referenced by itk::CropImageFilter< TInputImage, TOutputImage >::~CropImageFilter().
|
inline |
Definition at line 88 of file itkCropImageFilter.h.
References itkConceptMacro, itk::CropImageFilter< TInputImage, TOutputImage >::SetLowerBoundaryCropSize(), and itk::CropImageFilter< TInputImage, TOutputImage >::SetUpperBoundaryCropSize().
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
Referenced by itk::CropImageFilter< TInputImage, TOutputImage >::SetBoundaryCropSize().
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
Referenced by itk::CropImageFilter< TInputImage, TOutputImage >::SetBoundaryCropSize().
|
static |
ImageDimension constants
Definition at line 76 of file itkCropImageFilter.h.
|
private |
Definition at line 121 of file itkCropImageFilter.h.
Referenced by itk::CropImageFilter< TInputImage, TOutputImage >::CropImageFilter().
|
private |
Definition at line 120 of file itkCropImageFilter.h.
Referenced by itk::CropImageFilter< TInputImage, TOutputImage >::CropImageFilter().
|
static |
ImageDimension constants
Definition at line 78 of file itkCropImageFilter.h.