ITK
5.2.0
Insight Toolkit
|
#include <itkShrinkImageFilter.h>
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageType = TInputImage |
using | InputIndexType = typename TInputImage::IndexType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename TOutputImage::RegionType |
using | OutputImageType = TOutputImage |
using | OutputIndexType = typename TOutputImage::IndexType |
using | OutputOffsetType = typename TOutputImage::OffsetType |
using | Pointer = SmartPointer< Self > |
using | Self = ShrinkImageFilter |
using | ShrinkFactorsType = FixedArray< unsigned int, ImageDimension > |
using | Superclass = ImageToImageFilter< TInputImage, TOutputImage > |
Public Types inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputImagePixelType = typename Superclass::OutputImagePixelType |
using | OutputImageRegionType = typename Superclass::OutputImageRegionType |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToImageFilter |
using | Superclass = ImageSource< TOutputImage > |
Public Types inherited from itk::ImageSource< TOutputImage > | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = Superclass::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArraySizeType = Superclass::DataObjectPointerArraySizeType |
using | OutputImagePixelType = typename OutputImageType::PixelType |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename OutputImageType::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = SmartPointer< Self > |
using | Self = ImageSource |
using | Superclass = ProcessObject |
Public Types inherited from itk::ProcessObject | |
using | ConstPointer = SmartPointer< const Self > |
using | DataObjectIdentifierType = DataObject::DataObjectIdentifierType |
using | DataObjectPointer = DataObject::Pointer |
using | DataObjectPointerArray = std::vector< DataObjectPointer > |
using | DataObjectPointerArraySizeType = DataObjectPointerArray::size_type |
using | MultiThreaderType = MultiThreaderBase |
using | NameArray = std::vector< DataObjectIdentifierType > |
using | Pointer = SmartPointer< Self > |
using | Self = ProcessObject |
using | Superclass = Object |
Public Types inherited from itk::Object | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = Object |
using | Superclass = LightObject |
Public Types inherited from itk::LightObject | |
using | ConstPointer = SmartPointer< const Self > |
using | Pointer = SmartPointer< Self > |
using | Self = LightObject |
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static void | SetGlobalDefaultDirectionTolerance (double) |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static double | GetGlobalDefaultCoordinateTolerance () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
ShrinkFactorsType | m_ShrinkFactors |
virtual void | SetShrinkFactors (ShrinkFactorsType _arg) |
void | SetShrinkFactors (unsigned int factor) |
void | SetShrinkFactor (unsigned int i, unsigned int factor) |
virtual const ShrinkFactorsType & | GetShrinkFactors () const |
void | GenerateOutputInformation () override |
void | GenerateInputRequestedRegion () override |
ShrinkImageFilter () | |
~ShrinkImageFilter () override=default | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread) override |
Reduce the size of an image by an integer factor in each dimension.
ShrinkImageFilter reduces the size of an image by an integer factor in each dimension. The algorithm implemented is a simple subsample. The output image size in each dimension is given by:
outputSize[j] = max( std::floor(inputSize[j]/shrinkFactor[j]), 1 );
NOTE: The physical centers of the input and output will be the same. Because of this, the Origin of the output may not be the same as the Origin of the input. Since this filter produces an image which is a different resolution, origin and with different pixel spacing than its input image, it needs to override several of the methods defined in ProcessObject in order to properly manage the pipeline execution model. In particular, this filter overrides ProcessObject::GenerateInputRequestedRegion() and ProcessObject::GenerateOutputInformation().
This filter is implemented as a multithreaded filter. It provides a DynamicThreadedGenerateData() method for its implementation.
Definition at line 68 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 78 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::InputImageConstPointer = typename InputImageType::ConstPointer |
Definition at line 91 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 90 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Definition at line 88 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::InputIndexType = typename TInputImage::IndexType |
Definition at line 94 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 89 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType |
Typedef to describe the output image region type.
Definition at line 98 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Typedef to images
Definition at line 87 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::OutputIndexType = typename TOutputImage::IndexType |
Definition at line 93 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::OutputOffsetType = typename TOutputImage::OffsetType |
Definition at line 95 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 77 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::Self = ShrinkImageFilter |
Standard class type aliases.
Definition at line 75 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::ShrinkFactorsType = FixedArray<unsigned int, ImageDimension> |
Definition at line 104 of file itkShrinkImageFilter.h.
using itk::ShrinkImageFilter< TInputImage, TOutputImage >::Superclass = ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 76 of file itkShrinkImageFilter.h.
|
protected |
Set the shrink factors. Values are clamped to a minimum value of 1. Default is 1 for all dimensions.
|
overrideprotecteddefault |
Set the shrink factors. Values are clamped to a minimum value of 1. Default is 1 for all dimensions.
|
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 |
ShrinkImageFilter can be implemented as a multithreaded filter. Therefore, this implementation provides a DynamicThreadedGenerateData() routine which is called for each processing thread. The output image data is allocated automatically by the superclass prior to calling DynamicThreadedGenerateData(). DynamicThreadedGenerateData can only write to the portion of the output image specified by the parameter "outputRegionForThread"
Reimplemented from itk::ImageSource< TOutputImage >.
|
overridevirtual |
ShrinkImageFilter needs a larger input requested region than the output requested region. As such, ShrinkImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
overridevirtual |
ShrinkImageFilter produces an image which is a different resolution and with a different pixel spacing than its input image. As such, ShrinkImageFilter 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::ProcessObject.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Get the shrink factors.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Set the shrink factors. Values are clamped to a minimum value of 1. Default is 1 for all dimensions.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
void itk::ShrinkImageFilter< TInputImage, TOutputImage >::SetShrinkFactor | ( | unsigned int | i, |
unsigned int | factor | ||
) |
Set the shrink factors. Values are clamped to a minimum value of 1. Default is 1 for all dimensions.
|
virtual |
Set the shrink factors. Values are clamped to a minimum value of 1. Default is 1 for all dimensions.
void itk::ShrinkImageFilter< TInputImage, TOutputImage >::SetShrinkFactors | ( | unsigned int | factor | ) |
Set the shrink factors. Values are clamped to a minimum value of 1. Default is 1 for all dimensions.
|
staticconstexpr |
ImageDimension enumeration.
Definition at line 101 of file itkShrinkImageFilter.h.
|
private |
Set the shrink factors. Values are clamped to a minimum value of 1. Default is 1 for all dimensions.
Definition at line 165 of file itkShrinkImageFilter.h.
|
staticconstexpr |
Definition at line 102 of file itkShrinkImageFilter.h.