RTK
2.6.0
Reconstruction Toolkit
|
#include <rtkUpsampleImageFilter.h>
Public Types | |
using | ConstPointer = itk::SmartPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageType = TInputImage |
using | OutputImagePointer = typename OutputImageType::Pointer |
using | OutputImageRegionType = typename TOutputImage::RegionType |
using | OutputImageType = TOutputImage |
using | Pointer = itk::SmartPointer< Self > |
using | Self = UpsampleImageFilter |
using | Superclass = itk::ImageToImageFilter< TInputImage, TOutputImage > |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother () const |
void | GenerateInputRequestedRegion () override |
void | GenerateOutputInformation () override |
void | SetFactor (unsigned int dimension, unsigned int factor) |
void | SetFactors (const unsigned int factors[]) |
virtual const char * | GetNameOfClass () const |
virtual void | SetOrder (unsigned int _arg) |
virtual unsigned int | GetOrder () |
virtual void | SetOutputSize (typename TOutputImage::SizeType _arg) |
virtual TOutputImage::SizeType | GetOutputSize () |
virtual void | SetOutputIndex (typename TOutputImage::IndexType _arg) |
virtual TOutputImage::IndexType | GetOutputIndex () |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = TInputImage::ImageDimension |
Protected Member Functions | |
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType) override |
UpsampleImageFilter () | |
~UpsampleImageFilter () override=default | |
Private Member Functions | |
const itk::ImageRegionSplitterBase * | GetImageRegionSplitter () const override |
Private Attributes | |
unsigned int | m_Factors [ImageDimension] |
unsigned int | m_Order |
TOutputImage::IndexType | m_OutputIndex |
TOutputImage::SizeType | m_OutputSize |
itk::ImageRegionSplitterDirection::Pointer | m_Splitter |
Upsamples an image by the given factor for each dimension.
This filter is inspired from Dan Mueller's GIFT package https://www.insight-journal.org/browse/publication/103
Definition at line 39 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::ConstPointer = itk::SmartPointer<const Self> |
Definition at line 48 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::InputImageConstPointer = typename InputImageType::ConstPointer |
Definition at line 66 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 65 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Definition at line 63 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 64 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType |
Typedef to describe the output image region type.
Definition at line 69 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Typedef to images
Definition at line 62 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::Pointer = itk::SmartPointer<Self> |
Definition at line 47 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::Self = UpsampleImageFilter |
Standard class type alias.
Definition at line 45 of file rtkUpsampleImageFilter.h.
using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::Superclass = itk::ImageToImageFilter<TInputImage, TOutputImage> |
Definition at line 46 of file rtkUpsampleImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
virtual |
Reimplemented from itk::Object.
|
overridevirtual |
UpsampleImageFilter needs a larger input requested region than the output requested region. As such, UpsampleImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
overridevirtual |
UpsampleImageFilter produces an image which is a different resolution and with a different pixel spacing than its input image. As such, UpsampleImageFilter 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.
|
overrideprivatevirtual |
Reimplemented from itk::ImageSource< TOutputImage >.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the order of the wavelet filter This is required because some information about the index of the image is lost during downsampling, and the upsampling filter can't guess what the exact index should be.
|
virtual |
Set/Get the index of the output image This is required because some information about the index of the image is lost during downsampling, and the upsampling filter can't guess what the exact index should be. The output index is actually set to OutputIndex + 1.
|
virtual |
Set/Get the size of the output image This is required because some information about the size of the image is lost during downsampling, and the upsampling filter can't guess what the exact size should be.
|
static |
Method for creation through the object factory.
void rtk::UpsampleImageFilter< TInputImage, TOutputImage >::SetFactor | ( | unsigned int | dimension, |
unsigned int | factor | ||
) |
Sets the shrink factor for the given dimension. All other dimensions are set to 1
void rtk::UpsampleImageFilter< TInputImage, TOutputImage >::SetFactors | ( | const unsigned int | factors[] | ) |
Set the shrink factors. Values are clamped to a minimum value of 1.
|
virtual |
Set/Get the order of the wavelet filter This is required because some information about the index of the image is lost during downsampling, and the upsampling filter can't guess what the exact index should be.
|
virtual |
Set/Get the index of the output image This is required because some information about the index of the image is lost during downsampling, and the upsampling filter can't guess what the exact index should be. The output index is actually set to OutputIndex + 1.
|
virtual |
Set/Get the size of the output image This is required because some information about the size of the image is lost during downsampling, and the upsampling filter can't guess what the exact size should be.
|
overrideprotectedvirtual |
UpsampleImageFilter 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 >.
|
static |
ImageDimension enumeration.
Definition at line 72 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 149 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 150 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 152 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 151 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 156 of file rtkUpsampleImageFilter.h.