ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::ImportImageFilter< TImage > Class Template Reference

#include <rtkImportImageFilter.h>

Detailed Description

template<typename TImage>
class rtk::ImportImageFilter< TImage >

Import data from a standard C array into an itk::Image.

ImportImageFilter provides a mechanism for importing data into a TImage. ImportImageFilter is an image source, so it behaves like any other pipeline object.

This class is templated over the image type of the output image, unlike itk::ImportImageFilter which is templated over the pixel type and the dimension and is therefore incompatible with itk::CudaImage.

Author
Marc Vila

Definition at line 44 of file rtkImportImageFilter.h.

+ Inheritance diagram for rtk::ImportImageFilter< TImage >:
+ Collaboration diagram for rtk::ImportImageFilter< TImage >:

Public Types

using ConstPointer = itk::SmartPointer<const Self>
 
using DirectionType = itk::Matrix<double, TImage::ImageDimension, TImage::ImageDimension>
 
using IndexType = itk::Index<TImage::ImageDimension>
 
using OriginType = typename TImage::PointType
 
using OutputImagePointer = typename TImage::Pointer
 
using PixelType = typename TImage::PixelType
 
using Pointer = itk::SmartPointer<Self>
 
using RegionType = itk::ImageRegion<TImage::ImageDimension>
 
using Self = ImportImageFilter
 
using SizeType = itk::Size<TImage::ImageDimension>
 
using SizeValueType = typename SizeType::SizeValueType
 
using SpacingType = typename TImage::SpacingType
 
using Superclass = itk::ImageSource<TImage>
 
- Public Types inherited from itk::ImageSource< TImage >
using ConstPointer
 
using DataObjectIdentifierType
 
using DataObjectPointer
 
using DataObjectPointerArraySizeType
 
using OutputImagePixelType
 
using OutputImagePointer
 
using OutputImageRegionType
 
using OutputImageType
 
using Pointer
 
using Self
 
using Superclass
 
- 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 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
 

Public Member Functions

virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const DirectionType & GetDirection () const
 
PixelType * GetImportPointer ()
 
virtual const char * GetNameOfClass () const
 
virtual const OriginType & GetOrigin () const
 
const RegionType & GetRegion () const
 
virtual const SpacingType & GetSpacing () const
 
virtual void SetDirection (const DirectionType &direction)
 
void SetImportPointer (PixelType *ptr, SizeValueType num, bool LetFilterManageMemory)
 
virtual void SetOrigin (const float data[])
 
virtual void SetOrigin (OriginType _arg)
 
void SetRegion (const RegionType &region)
 
virtual void SetSpacing (const float data[])
 
virtual void SetSpacing (SpacingType _arg)
 
- Public Member Functions inherited from itk::ImageSource< TImage >
OutputImageType * GetOutput (unsigned int idx)
 
OutputImageType * GetOutput (unsigned int idx)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *graft)
 
virtual void GraftNthOutput (unsigned int idx, DataObject *graft)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *graft)
 
virtual void GraftOutput (const DataObjectIdentifierType &key, DataObject *graft)
 
virtual void GraftOutput (DataObject *graft)
 
virtual void GraftOutput (DataObject *graft)
 
OutputImageType * GetOutput ()
 
const OutputImageType * GetOutput () const
 
OutputImageType * GetOutput ()
 
const OutputImageType * GetOutput () const
 
ProcessObject::DataObjectPointer MakeOutput (ProcessObject::DataObjectPointerArraySizeType idx) override
 
ProcessObject::DataObjectPointer MakeOutput (const ProcessObject::DataObjectIdentifierType &) override
 
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 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
 
LightObject::Pointer CreateAnother () const override
 
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::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 ()
 

Protected Member Functions

void EnlargeOutputRequestedRegion (itk::DataObject *output) override
 
void GenerateData () override
 
void GenerateOutputInformation () override
 
 ImportImageFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
 ~ImportImageFilter () override
 
- Protected Member Functions inherited from itk::ImageSource< TImage >
virtual void AfterThreadedGenerateData ()
 
virtual void AfterThreadedGenerateData ()
 
virtual void AllocateOutputs ()
 
virtual void AllocateOutputs ()
 
virtual void BeforeThreadedGenerateData ()
 
virtual void BeforeThreadedGenerateData ()
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
void ClassicMultiThread (ThreadFunctionType callbackFunction)
 
virtual const ImageRegionSplitterBase * GetImageRegionSplitter () const
 
virtual const ImageRegionSplitterBase * GetImageRegionSplitter () const
 
 ImageSource ()
 
 ImageSource ()
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
virtual unsigned int SplitRequestedRegion (unsigned int i, unsigned int pieces, OutputImageRegionType &splitRegion)
 
 ~ImageSource () override=default
 
 ~ImageSource () override=default
 
virtual void ThreadedGenerateData (const OutputImageRegionType &region, ThreadIdType threadId)
 
virtual void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread)
 
virtual void ThreadedGenerateData (const OutputImageRegionType &region, ThreadIdType threadId)
 
virtual void DynamicThreadedGenerateData (const OutputImageRegionType &outputRegionForThread)
 
virtual bool GetDynamicMultiThreading () const
 
virtual void SetDynamicMultiThreading (bool _arg)
 
virtual void DynamicMultiThreadingOn ()
 
virtual void DynamicMultiThreadingOff ()
 
virtual bool GetDynamicMultiThreading () const
 
virtual void SetDynamicMultiThreading (bool _arg)
 
virtual void DynamicMultiThreadingOn ()
 
virtual void DynamicMultiThreadingOff ()
 
- Protected Member Functions inherited from itk::ProcessObject
virtual void AddInput (DataObject *input)
 
void AddOptionalInputName (const DataObjectIdentifierType &)
 
void AddOptionalInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void AddOutput (DataObject *output)
 
bool AddRequiredInputName (const DataObjectIdentifierType &)
 
bool AddRequiredInputName (const DataObjectIdentifierType &, DataObjectPointerArraySizeType idx)
 
virtual void CacheInputReleaseDataFlags ()
 
virtual void GenerateInputRequestedRegion ()
 
virtual void GenerateOutputRequestedRegion (DataObject *output)
 
DataObject * GetInput (const DataObjectIdentifierType &key)
 
const DataObject * GetInput (const DataObjectIdentifierType &key) const
 
virtual const DataObjectPointerArraySizeType & GetNumberOfRequiredInputs () const
 
virtual const DataObjectPointerArraySizeType & GetNumberOfRequiredOutputs () const
 
bool IsIndexedInputName (const DataObjectIdentifierType &) const
 
bool IsIndexedOutputName (const DataObjectIdentifierType &) const
 
bool IsRequiredInputName (const DataObjectIdentifierType &) const
 
DataObjectPointerArraySizeType MakeIndexFromInputName (const DataObjectIdentifierType &name) const
 
DataObjectPointerArraySizeType MakeIndexFromOutputName (const DataObjectIdentifierType &name) const
 
DataObjectIdentifierType MakeNameFromInputIndex (DataObjectPointerArraySizeType idx) const
 
DataObjectIdentifierType MakeNameFromOutputIndex (DataObjectPointerArraySizeType idx) const
 
virtual void PopBackInput ()
 
virtual void PopFrontInput ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ProcessObject ()
 
virtual void PropagateResetPipeline ()
 
virtual void PushBackInput (const DataObject *input)
 
virtual void PushFrontInput (const DataObject *input)
 
virtual void ReleaseInputs ()
 
virtual void RemoveInput (const DataObjectIdentifierType &key)
 
virtual void RemoveInput (DataObjectPointerArraySizeType)
 
virtual void RemoveOutput (const DataObjectIdentifierType &key)
 
virtual void RemoveOutput (DataObjectPointerArraySizeType idx)
 
bool RemoveRequiredInputName (const DataObjectIdentifierType &)
 
virtual void RestoreInputReleaseDataFlags ()
 
virtual void SetInput (const DataObjectIdentifierType &key, DataObject *input)
 
virtual void SetNthInput (DataObjectPointerArraySizeType idx, DataObject *input)
 
virtual void SetNthOutput (DataObjectPointerArraySizeType idx, DataObject *output)
 
void SetNumberOfIndexedInputs (DataObjectPointerArraySizeType num)
 
void SetNumberOfIndexedOutputs (DataObjectPointerArraySizeType num)
 
virtual void SetNumberOfRequiredInputs (DataObjectPointerArraySizeType)
 
virtual void SetNumberOfRequiredOutputs (DataObjectPointerArraySizeType _arg)
 
virtual void SetOutput (const DataObjectIdentifierType &name, DataObject *output)
 
virtual void SetPrimaryInput (DataObject *object)
 
virtual void SetPrimaryOutput (DataObject *object)
 
void SetRequiredInputNames (const NameArray &)
 
virtual void VerifyInputInformation () const
 
virtual void VerifyPreconditions () const
 
 ~ProcessObject () override
 
DataObject * GetInput (DataObjectPointerArraySizeType idx)
 
const DataObject * GetInput (DataObjectPointerArraySizeType idx) const
 
DataObject * GetPrimaryInput ()
 
const DataObject * GetPrimaryInput () const
 
virtual void SetPrimaryInputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryInputName () const
 
DataObject * GetOutput (const DataObjectIdentifierType &key)
 
const DataObject * GetOutput (const DataObjectIdentifierType &key) const
 
virtual void SetPrimaryOutputName (const DataObjectIdentifierType &key)
 
virtual const char * GetPrimaryOutputName () const
 
DataObject * GetOutput (DataObjectPointerArraySizeType i)
 
const DataObject * GetOutput (DataObjectPointerArraySizeType i) const
 
DataObject * GetPrimaryOutput ()
 
const DataObject * GetPrimaryOutput () const
 
virtual bool GetThreaderUpdateProgress () const
 
virtual void ThreaderUpdateProgressOn ()
 
virtual void ThreaderUpdateProgressOff ()
 
virtual void SetThreaderUpdateProgress (bool arg)
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Attributes

DirectionType m_Direction
 
bool m_FilterManageMemory
 
PixelType * m_ImportPointer
 
OriginType m_Origin
 
RegionType m_Region
 
SizeValueType m_Size
 
SpacingType m_Spacing
 

Additional Inherited Members

- Static Public Attributes inherited from itk::ImageSource< TImage >
static constexpr unsigned int OutputImageDimension
 
static constexpr unsigned int OutputImageDimension
 
- Static Protected Member Functions inherited from itk::ImageSource< TImage >
static const ImageRegionSplitterBase * GetGlobalDefaultSplitter ()
 
static const ImageRegionSplitterBase * GetGlobalDefaultSplitter ()
 
static ITK_THREAD_RETURN_FUNCTION_CALL_CONVENTION ThreaderCallback (void *arg)
 
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< TImage >
bool m_DynamicMultiThreading
 
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 {}
 

Member Typedef Documentation

◆ ConstPointer

template<typename TImage>
using rtk::ImportImageFilter< TImage >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 58 of file rtkImportImageFilter.h.

◆ DirectionType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::DirectionType = itk::Matrix<double, TImage::ImageDimension, TImage::ImageDimension>

Definition at line 130 of file rtkImportImageFilter.h.

◆ IndexType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::IndexType = itk::Index<TImage::ImageDimension>

Index type alias support. An index is used to access pixel values.

Definition at line 67 of file rtkImportImageFilter.h.

◆ OriginType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::OriginType = typename TImage::PointType

Definition at line 52 of file rtkImportImageFilter.h.

◆ OutputImagePointer

template<typename TImage>
using rtk::ImportImageFilter< TImage >::OutputImagePointer = typename TImage::Pointer

Typedef for the output image.

Definition at line 50 of file rtkImportImageFilter.h.

◆ PixelType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::PixelType = typename TImage::PixelType

Type of the output image pixel type.

Definition at line 78 of file rtkImportImageFilter.h.

◆ Pointer

template<typename TImage>
using rtk::ImportImageFilter< TImage >::Pointer = itk::SmartPointer<Self>

Definition at line 57 of file rtkImportImageFilter.h.

◆ RegionType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::RegionType = itk::ImageRegion<TImage::ImageDimension>

Region type alias support. A region is used to specify a subset of an image.

Definition at line 75 of file rtkImportImageFilter.h.

◆ Self

template<typename TImage>
using rtk::ImportImageFilter< TImage >::Self = ImportImageFilter

Standard class type alias.

Definition at line 55 of file rtkImportImageFilter.h.

◆ SizeType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::SizeType = itk::Size<TImage::ImageDimension>

Size type alias support. A size is used to define region bounds.

Definition at line 70 of file rtkImportImageFilter.h.

◆ SizeValueType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::SizeValueType = typename SizeType::SizeValueType

Definition at line 71 of file rtkImportImageFilter.h.

◆ SpacingType

template<typename TImage>
using rtk::ImportImageFilter< TImage >::SpacingType = typename TImage::SpacingType

Definition at line 51 of file rtkImportImageFilter.h.

◆ Superclass

template<typename TImage>
using rtk::ImportImageFilter< TImage >::Superclass = itk::ImageSource<TImage>

Definition at line 56 of file rtkImportImageFilter.h.

Constructor & Destructor Documentation

◆ ImportImageFilter()

template<typename TImage>
rtk::ImportImageFilter< TImage >::ImportImageFilter ( )
protected

Referenced by GetNameOfClass().

◆ ~ImportImageFilter()

template<typename TImage>
rtk::ImportImageFilter< TImage >::~ImportImageFilter ( )
overrideprotected

Member Function Documentation

◆ CreateAnother()

template<typename TImage>
virtual::itk::LightObject::Pointer rtk::ImportImageFilter< TImage >::CreateAnother ( ) const
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.

◆ EnlargeOutputRequestedRegion()

template<typename TImage>
void rtk::ImportImageFilter< TImage >::EnlargeOutputRequestedRegion ( itk::DataObject * output)
overrideprotectedvirtual

This filter can only produce the amount of data that it is given, so we must override ProcessObject::EnlargeOutputRequestedRegion() (The default implementation of a source produces the amount of data requested. This source, however, can only produce what it is given.)

See also
ProcessObject::EnlargeOutputRequestedRegion()

Reimplemented from itk::ProcessObject.

◆ GenerateData()

template<typename TImage>
void rtk::ImportImageFilter< TImage >::GenerateData ( )
overrideprotectedvirtual

This filter does not actually "produce" any data, rather it "wraps" the user supplied data into an itk::Image.

Reimplemented from itk::ImageSource< TImage >.

◆ GenerateOutputInformation()

template<typename TImage>
void rtk::ImportImageFilter< TImage >::GenerateOutputInformation ( )
overrideprotectedvirtual

This is a source, so it must set the spacing, size, and largest possible region for the output image that it will produce.

See also
ProcessObject::GenerateOutputInformation()

Reimplemented from itk::ProcessObject.

◆ GetDirection()

template<typename TImage>
virtual const DirectionType & rtk::ImportImageFilter< TImage >::GetDirection ( ) const
virtual

Get the direction of the image

See also
SetDirection

◆ GetImportPointer()

template<typename TImage>
PixelType * rtk::ImportImageFilter< TImage >::GetImportPointer ( )

Get the pointer from which the image data is imported.

◆ GetNameOfClass()

template<typename TImage>
virtual const char * rtk::ImportImageFilter< TImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TImage >.

References ImportImageFilter().

◆ GetOrigin()

template<typename TImage>
virtual const OriginType & rtk::ImportImageFilter< TImage >::GetOrigin ( ) const
virtual

◆ GetRegion()

template<typename TImage>
const RegionType & rtk::ImportImageFilter< TImage >::GetRegion ( ) const
inline

Get the region object that defines the size and starting index for the imported image. This will serve as the LargestPossibleRegion, the BufferedRegion, and the RequestedRegion.

See also
ImageRegion

Definition at line 113 of file rtkImportImageFilter.h.

References m_Region.

◆ GetSpacing()

template<typename TImage>
virtual const SpacingType & rtk::ImportImageFilter< TImage >::GetSpacing ( ) const
virtual

◆ New()

template<typename TImage>
static Pointer rtk::ImportImageFilter< TImage >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<typename TImage>
void rtk::ImportImageFilter< TImage >::PrintSelf ( std::ostream & os,
itk::Indent indent ) const
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::ImageSource< TImage >.

◆ SetDirection()

template<typename TImage>
virtual void rtk::ImportImageFilter< TImage >::SetDirection ( const DirectionType & direction)
virtual

Set the direction of the image

See also
GetDirection()

◆ SetImportPointer()

template<typename TImage>
void rtk::ImportImageFilter< TImage >::SetImportPointer ( PixelType * ptr,
SizeValueType num,
bool LetFilterManageMemory )

Set the pointer from which the image data is imported. "num" is the number of pixels in the block of memory. If "LetFilterManageMemory" is false, then the this filter will not free the memory in its destructor and the application providing the buffer retains the responsibility of freeing the memory for this image data. If "LetFilterManageMemory" is true, then this class will free the memory when this object is destroyed.

◆ SetOrigin() [1/2]

template<typename TImage>
virtual void rtk::ImportImageFilter< TImage >::SetOrigin ( const float data[])
virtual

◆ SetOrigin() [2/2]

template<typename TImage>
virtual void rtk::ImportImageFilter< TImage >::SetOrigin ( OriginType _arg)
virtual

Set the origin of the image.

See also
GetOrigin()

◆ SetRegion()

template<typename TImage>
void rtk::ImportImageFilter< TImage >::SetRegion ( const RegionType & region)
inline

Set the region object that defines the size and starting index for the imported image. This will serve as the LargestPossibleRegion, the BufferedRegion, and the RequestedRegion.

See also
ImageRegion

Definition at line 99 of file rtkImportImageFilter.h.

References m_Region, and itk::Object::Modified().

◆ SetSpacing() [1/2]

template<typename TImage>
virtual void rtk::ImportImageFilter< TImage >::SetSpacing ( const float data[])
virtual

◆ SetSpacing() [2/2]

template<typename TImage>
virtual void rtk::ImportImageFilter< TImage >::SetSpacing ( SpacingType _arg)
virtual

Set the spacing (size of a pixel) of the image.

See also
GetSpacing()

Member Data Documentation

◆ m_Direction

template<typename TImage>
DirectionType rtk::ImportImageFilter< TImage >::m_Direction
private

Definition at line 172 of file rtkImportImageFilter.h.

◆ m_FilterManageMemory

template<typename TImage>
bool rtk::ImportImageFilter< TImage >::m_FilterManageMemory
private

Definition at line 175 of file rtkImportImageFilter.h.

◆ m_ImportPointer

template<typename TImage>
PixelType* rtk::ImportImageFilter< TImage >::m_ImportPointer
private

Definition at line 174 of file rtkImportImageFilter.h.

◆ m_Origin

template<typename TImage>
OriginType rtk::ImportImageFilter< TImage >::m_Origin
private

Definition at line 171 of file rtkImportImageFilter.h.

◆ m_Region

template<typename TImage>
RegionType rtk::ImportImageFilter< TImage >::m_Region
private

Definition at line 169 of file rtkImportImageFilter.h.

Referenced by GetRegion(), and SetRegion().

◆ m_Size

template<typename TImage>
SizeValueType rtk::ImportImageFilter< TImage >::m_Size
private

Definition at line 176 of file rtkImportImageFilter.h.

◆ m_Spacing

template<typename TImage>
SpacingType rtk::ImportImageFilter< TImage >::m_Spacing
private

Definition at line 170 of file rtkImportImageFilter.h.


The documentation for this class was generated from the following file: