#include <rtkUpsampleImageFilter.h>
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.
Inheritance diagram for rtk::UpsampleImageFilter< TInputImage, TOutputImage >:
Collaboration diagram for rtk::UpsampleImageFilter< TInputImage, TOutputImage >:Public Member Functions | |
| virtual::itk::LightObject::Pointer | CreateAnother () const |
| void | GenerateInputRequestedRegion () override |
| void | GenerateOutputInformation () override |
| virtual const char * | GetNameOfClass () const |
| virtual unsigned int | GetOrder () |
| virtual TOutputImage::IndexType | GetOutputIndex () |
| virtual TOutputImage::SizeType | GetOutputSize () |
| void | SetFactor (unsigned int dimension, unsigned int factor) |
| void | SetFactors (const unsigned int factors[]) |
| virtual void | SetOrder (unsigned int _arg) |
| virtual void | SetOutputIndex (typename TOutputImage::IndexType _arg) |
| virtual void | SetOutputSize (typename TOutputImage::SizeType _arg) |
Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TInputImage > | |
| const InputImageType * | GetInput () const |
| const InputImageType * | GetInput () const |
| const InputImageType * | GetInput (unsigned int idx) const |
| const InputImageType * | GetInput (unsigned int idx) const |
| void | PopBackInput () override |
| void | PopBackInput () override |
| void | PopFrontInput () override |
| void | PopFrontInput () override |
| virtual void | PushBackInput (const InputImageType *input) |
| virtual void | PushBackInput (const InputImageType *input) |
| virtual void | PushFrontInput (const InputImageType *input) |
| virtual void | PushFrontInput (const InputImageType *input) |
| virtual void | SetInput (const InputImageType *input) |
| virtual void | SetInput (const InputImageType *input) |
| virtual void | SetInput (unsigned int, const TInputImage *image) |
| virtual void | SetInput (unsigned int, const TInputImage *image) |
| virtual void | SetCoordinateTolerance (double _arg) |
| virtual double | GetCoordinateTolerance () const |
| virtual void | SetCoordinateTolerance (double _arg) |
| virtual double | GetCoordinateTolerance () const |
| virtual void | SetDirectionTolerance (double _arg) |
| virtual double | GetDirectionTolerance () const |
| virtual void | SetDirectionTolerance (double _arg) |
| virtual double | GetDirectionTolerance () const |
Public Member Functions inherited from itk::ImageSource< TInputImage > | |
| OutputImageType * | GetOutput (unsigned int idx) |
| virtual void | GraftNthOutput (unsigned int idx, DataObject *graft) |
| virtual void | GraftOutput (const DataObjectIdentifierType &key, DataObject *graft) |
| virtual void | GraftOutput (DataObject *graft) |
| OutputImageType * | GetOutput () |
| const OutputImageType * | GetOutput () const |
| ProcessObject::DataObjectPointer | MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override |
| ProcessObject::DataObjectPointer | MakeOutput (const ProcessObject::DataObjectIdentifierType &) override |
Public Member Functions inherited from itk::ProcessObject | |
| virtual void | AbortGenerateDataOff () |
| virtual void | AbortGenerateDataOn () |
| virtual void | EnlargeOutputRequestedRegion (DataObject *output) |
| virtual const bool & | GetAbortGenerateData () const |
| DataObjectPointerArray | GetIndexedInputs () |
| DataObjectPointerArray | GetIndexedOutputs () |
| NameArray | GetInputNames () const |
| DataObjectPointerArray | GetInputs () |
| MultiThreaderBase * | GetMultiThreader () const |
| DataObjectPointerArraySizeType | GetNumberOfIndexedInputs () const |
| DataObjectPointerArraySizeType | GetNumberOfIndexedOutputs () const |
| DataObjectPointerArraySizeType | GetNumberOfInputs () const |
| DataObjectPointerArraySizeType | GetNumberOfOutputs () const |
| virtual DataObjectPointerArraySizeType | GetNumberOfValidRequiredInputs () const |
| NameArray | GetOutputNames () const |
| DataObjectPointerArray | GetOutputs () |
| virtual float | GetProgress () const |
| NameArray | GetRequiredInputNames () const |
| bool | HasInput (const DataObjectIdentifierType &key) const |
| bool | HasOutput (const DataObjectIdentifierType &key) const |
| void | IncrementProgress (float increment) |
| virtual void | PrepareOutputs () |
| virtual void | PropagateRequestedRegion (DataObject *output) |
| virtual void | ResetPipeline () |
| virtual void | SetAbortGenerateData (bool _arg) |
| void | SetMultiThreader (MultiThreaderBase *threader) |
| virtual void | SetNumberOfWorkUnitsFromThreadRatio (ThreadIdType ratio) |
| virtual void | Update () |
| virtual void | UpdateLargestPossibleRegion () |
| virtual void | UpdateOutputData (DataObject *output) |
| virtual void | UpdateOutputInformation () |
| void | UpdateProgress (float progress) |
| virtual void | SetReleaseDataFlag (bool val) |
| virtual bool | GetReleaseDataFlag () const |
| void | ReleaseDataFlagOn () |
| void | ReleaseDataFlagOff () |
| virtual void | SetReleaseDataBeforeUpdateFlag (bool _arg) |
| virtual const bool & | GetReleaseDataBeforeUpdateFlag () const |
| virtual void | ReleaseDataBeforeUpdateFlagOn () |
| virtual void | ReleaseDataBeforeUpdateFlagOff () |
| virtual void | SetNumberOfWorkUnits (ThreadIdType numberOfWorkUnits) |
| virtual ThreadIdType | GetNumberOfWorkUnits () const |
Public Member Functions inherited from itk::Object | |
| unsigned long | AddObserver (const EventObject &event, Command *cmd) const |
| unsigned long | AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const |
| virtual void | DebugOff () const |
| virtual void | DebugOn () const |
| Command * | GetCommand (unsigned long tag) |
| bool | GetDebug () const |
| MetaDataDictionary & | GetMetaDataDictionary () |
| const MetaDataDictionary & | GetMetaDataDictionary () const |
| virtual ModifiedTimeType | GetMTime () const |
| virtual const TimeStamp & | GetTimeStamp () const |
| bool | HasObserver (const EventObject &event) const |
| void | InvokeEvent (const EventObject &) |
| void | InvokeEvent (const EventObject &) const |
| virtual void | Modified () const |
| void | Register () const override |
| void | RemoveAllObservers () |
| void | RemoveObserver (unsigned long tag) const |
| void | SetDebug (bool debugFlag) const |
| void | SetReferenceCount (int) override |
| void | UnRegister () const noexcept override |
| void | SetMetaDataDictionary (const MetaDataDictionary &rhs) |
| void | SetMetaDataDictionary (MetaDataDictionary &&rrhs) |
| virtual void | SetObjectName (std::string _arg) |
| virtual const std::string & | GetObjectName () const |
Public Member Functions inherited from itk::LightObject | |
| Pointer | Clone () const |
| virtual void | Delete () |
| virtual int | GetReferenceCount () const |
| void | Print (std::ostream &os, Indent indent=0) const |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TInputImage > | |
| static double | GetGlobalDefaultCoordinateTolerance () |
| static double | GetGlobalDefaultCoordinateTolerance () |
| static double | GetGlobalDefaultDirectionTolerance () |
| static double | GetGlobalDefaultDirectionTolerance () |
| static void | SetGlobalDefaultCoordinateTolerance (double) |
| static void | SetGlobalDefaultCoordinateTolerance (double) |
| static void | SetGlobalDefaultDirectionTolerance (double) |
| static void | SetGlobalDefaultDirectionTolerance (double) |
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 Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TInputImage > | |
| static constexpr unsigned int | InputImageDimension |
| static constexpr unsigned int | InputImageDimension |
| static constexpr unsigned int | OutputImageDimension |
| static constexpr unsigned int | OutputImageDimension |
Static Public Attributes inherited from itk::ImageSource< TInputImage > | |
| static constexpr unsigned int | OutputImageDimension |
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 |
Additional Inherited Members | |
Protected Types inherited from itk::ImageToImageFilter< TInputImage, TInputImage > | |
| using | InputToOutputRegionCopierType |
| using | OutputToInputRegionCopierType |
Static Protected Member Functions inherited from itk::ImageSource< TInputImage > | |
| static const ImageRegionSplitterBase * | GetGlobalDefaultSplitter () |
| static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION | ThreaderCallback (void *arg) |
Static Protected Member Functions inherited from itk::ProcessObject | |
| template<typename TSourceObject> | |
| static void | MakeRequiredOutputs (TSourceObject &sourceObject, const DataObjectPointerArraySizeType numberOfRequiredOutputs) |
| static constexpr float | progressFixedToFloat (uint32_t fixed) |
| static uint32_t | progressFloatToFixed (float f) |
Protected Attributes inherited from itk::ImageSource< TInputImage > | |
| bool | m_DynamicMultiThreading |
Protected Attributes inherited from itk::ProcessObject | |
| TimeStamp | m_OutputInformationMTime {} |
| bool | m_Updating {} |
Protected Attributes inherited from itk::LightObject | |
| std::atomic< int > | m_ReferenceCount {} |
| 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 61 of file rtkUpsampleImageFilter.h.
| using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::InputImagePointer = typename InputImageType::Pointer |
Definition at line 60 of file rtkUpsampleImageFilter.h.
| using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Definition at line 58 of file rtkUpsampleImageFilter.h.
| using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::OutputImagePointer = typename OutputImageType::Pointer |
Definition at line 59 of file rtkUpsampleImageFilter.h.
| using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::OutputImageRegionType = typename TOutputImage::RegionType |
Typedef to describe the output image region type.
Definition at line 64 of file rtkUpsampleImageFilter.h.
| using rtk::UpsampleImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Typedef to images
Definition at line 57 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 |
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.
|
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, TInputImage >.
|
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.
|
nodiscardoverrideprivatevirtual |
Get the image splitter to split the image for multi-threading.
The Splitter object divides the image into regions for threading or streaming. The algorithms on how to split an images are separated into class so that they can be easily be reused. When deriving from this class to write a filter consideration to the algorithm used to divide the image should be made. If a change is desired this method should be overridden to return the appropriate object.
Reimplemented from itk::ImageSource< TInputImage >.
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::ImageToImageFilter< TInputImage, TInputImage >.
|
virtual |
|
virtual |
|
virtual |
|
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.
|
overrideprotected |
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"
|
staticconstexpr |
ImageDimension enumeration.
Definition at line 67 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 141 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 142 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 144 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 143 of file rtkUpsampleImageFilter.h.
|
private |
Definition at line 148 of file rtkUpsampleImageFilter.h.