#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 44 of file itkCropImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
![]() | |
static Pointer | New () |
![]() | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
![]() | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
![]() | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | InputImageDimension = Superclass::InputImageDimension |
static constexpr unsigned int | OutputImageDimension = Superclass::OutputImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | InputImageDimension |
static constexpr unsigned int | OutputImageDimension |
static constexpr unsigned int | OutputImageDimension |
![]() | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
![]() | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
SizeType | m_LowerBoundaryCropSize {} |
SizeType | m_UpperBoundaryCropSize {} |
using itk::CropImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 53 of file itkCropImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::InputImageIndexType |
Definition at line 150 of file itkExtractImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::InputImagePixelType |
Definition at line 146 of file itkExtractImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::InputImageRegionType |
Definition at line 142 of file itkExtractImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::InputImageSizeType |
Definition at line 152 of file itkExtractImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::OutputImageIndexType |
Typedef to describe the output and input image index and size types.
Definition at line 149 of file itkExtractImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::OutputImagePixelType |
Typedef to describe the type of pixel.
Definition at line 145 of file itkExtractImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::OutputImageRegionType |
Typedef to describe the output and input image region types.
Definition at line 141 of file itkExtractImageFilter.h.
using itk::ExtractImageFilter< TInputImage, TOutputImage >::OutputImageSizeType |
Definition at line 151 of file itkExtractImageFilter.h.
using itk::CropImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 52 of file itkCropImageFilter.h.
using itk::CropImageFilter< TInputImage, TOutputImage >::Self = CropImageFilter |
Standard class type aliases.
Definition at line 50 of file itkCropImageFilter.h.
using itk::CropImageFilter< TInputImage, TOutputImage >::SizeType = InputImageSizeType |
Definition at line 74 of file itkCropImageFilter.h.
using itk::CropImageFilter< TInputImage, TOutputImage >::Superclass = ExtractImageFilter<TInputImage, TOutputImage> |
Definition at line 51 of file itkCropImageFilter.h.
|
inlineprotected |
Definition at line 98 of file itkCropImageFilter.h.
References m_LowerBoundaryCropSize, m_UpperBoundaryCropSize, and itk::ExtractImageFilter< TInputImage, TOutputImage >::SetDirectionCollapseToSubmatrix().
Referenced by GetNameOfClass().
|
overrideprotecteddefault |
|
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::LightObject.
|
overrideprotectedvirtual |
Generate the information describing the output data. The default implementation of this method will copy information from the input to the output. A filter may override this method if its output will have different information than its input. For instance, a filter that shrinks an image will need to provide an implementation for this method that changes the spacing of the pixels. Such filters should call their superclass' implementation of this method prior to changing the information values they need (i.e. GenerateOutputInformation() should call Superclass::GenerateOutputInformation() prior to changing the information.
Reimplemented from itk::ProcessObject.
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
|
overridevirtual |
Reimplemented from itk::LightObject.
References CropImageFilter().
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
|
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::LightObject.
|
inline |
Definition at line 88 of file itkCropImageFilter.h.
References SetLowerBoundaryCropSize(), and SetUpperBoundaryCropSize().
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
Referenced by SetBoundaryCropSize().
|
virtual |
Set/Get the cropping sizes for the upper and lower boundaries.
Referenced by SetBoundaryCropSize().
|
overrideprotectedvirtual |
Verifies that the inputs meta-data is consistent and valid for continued execution of the pipeline, throws an exception if not valid.
This method is called immediately before GenerateOutputInformation().
The ProcessObject implementation does nothing. Subclasses might check if all the inputs are in the same coordinate frame.
Reimplemented from itk::ProcessObject.
|
staticconstexpr |
ImageDimension constants.
Definition at line 77 of file itkCropImageFilter.h.
|
private |
Definition at line 117 of file itkCropImageFilter.h.
Referenced by CropImageFilter().
|
private |
Definition at line 116 of file itkCropImageFilter.h.
Referenced by CropImageFilter().
|
staticconstexpr |
Definition at line 78 of file itkCropImageFilter.h.