ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::ImageSpatialObject< TDimension, TPixelType > Class Template Reference

#include <itkImageSpatialObject.h>

Detailed Description

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
class itk::ImageSpatialObject< TDimension, TPixelType >

Implementation of an image as spatial object.

This class combines functionalities from a spatial object, and an image.

See also
SpatialObject CompositeSpatialObject
Examples
Examples/SpatialObjects/ImageSpatialObject.cxx.

Definition at line 40 of file itkImageSpatialObject.h.

+ Inheritance diagram for itk::ImageSpatialObject< TDimension, TPixelType >:
+ Collaboration diagram for itk::ImageSpatialObject< TDimension, TPixelType >:

Public Types

using ConstPointer = SmartPointer<const Self>
 
using ContinuousIndexType = ContinuousIndex<double, TDimension>
 
using ImagePointer = typename ImageType::ConstPointer
 
using ImageType = Image<PixelType, TDimension>
 
using IndexType = typename ImageType::IndexType
 
using InterpolatorType = InterpolateImageFunction<ImageType>
 
using NNInterpolatorType = NearestNeighborInterpolateImageFunction<ImageType>
 
using PixelType = TPixelType
 
using Pointer = SmartPointer<Self>
 
using PointType
 
using ScalarType = double
 
using Self = ImageSpatialObject<TDimension, TPixelType>
 
using Superclass = SpatialObject<TDimension>
 
- Public Types inherited from itk::SpatialObject< 3 >
using BoundingBoxPointer
 
using BoundingBoxType
 
using ChildrenConstListPointer
 
using ChildrenConstListType
 
using ChildrenListPointer
 
using ChildrenListType
 
using ConstPointer
 
using CovariantVectorType
 
using DerivativeOffsetType
 
using DerivativeVectorPointer
 
using DerivativeVectorType
 
using IndexType
 
using InputType
 
using ObjectConstListType
 
using ObjectDimensionType
 
using ObjectListType
 
using Pointer
 
using PointPointer
 
using PointType
 
using PropertyType
 
using RegionType
 
using ScalarType
 
using Self
 
using SizeType
 
using Superclass
 
using TransformConstPointer
 
using TransformPointer
 
using TransformType
 
using VectorContainerType
 
using VectorPointer
 
using VectorType
 
- Public Types inherited from itk::DataObject
using ConstPointer = SmartPointer<const Self>
 
using DataObjectIdentifierType = std::string
 
using DataObjectPointerArraySizeType = std::vector<Pointer>::size_type
 
using Pointer = SmartPointer<Self>
 
using Self = DataObject
 
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

void Clear () override
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
const ImageTypeGetImage () const
 
ModifiedTimeType GetMTime () const override
 
const char * GetNameOfClass () const override
 
bool IsInsideInObjectSpace (const PointType &point) const override
 
bool IsInsideInObjectSpace (const PointType &point, unsigned int depth, const std::string &name="") const
 
void SetImage (const ImageType *image)
 
void Update () override
 
bool ValueAtInObjectSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const override
 
virtual void SetSliceNumber (IndexType _arg)
 
void SetSliceNumber (unsigned int dimension, int position)
 
virtual IndexType GetSliceNumber () const
 
int GetSliceNumber (unsigned int dimension)
 
void SetInterpolator (InterpolatorType *interpolator)
 
virtual InterpolatorTypeGetInterpolator () const
 
- Public Member Functions inherited from itk::SpatialObject< 3 >
void AddChild (Self *pointer)
 
void AddChild (Self *pointer)
 
virtual void AddChildrenToConstList (ChildrenConstListType *childrenCList, unsigned int depth=0, const std::string &name="") const
 
virtual void AddChildrenToConstList (ChildrenConstListType *childrenCList, unsigned int depth=0, const std::string &name="") const
 
virtual void AddChildrenToList (ChildrenListType *childrenList, unsigned int depth=0, const std::string &name="") const
 
virtual void AddChildrenToList (ChildrenListType *childrenList, unsigned int depth=0, const std::string &name="") const
 
bool CheckIdValidity () const
 
bool CheckIdValidity () const
 
virtual bool ComputeFamilyBoundingBox (unsigned int depth=0, const std::string &name="") const
 
virtual bool ComputeFamilyBoundingBox (unsigned int depth=0, const std::string &name="") const
 
void ComputeObjectToParentTransform ()
 
void ComputeObjectToParentTransform ()
 
void CopyInformation (const DataObject *data) override
 
void CopyInformation (const DataObject *data) override
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual void DerivativeAtInObjectSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1))
 
virtual void DerivativeAtInObjectSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1))
 
void DerivativeAtInWorldSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1))
 
void DerivativeAtInWorldSpace (const PointType &point, short unsigned int order, CovariantVectorType &value, unsigned int depth=0, const std::string &name="", const DerivativeOffsetType &offset=MakeFilled< DerivativeOffsetType >(1))
 
bool Evaluate (const PointType &point) const
 
bool Evaluate (const PointType &point) const
 
void FixIdValidity ()
 
void FixIdValidity ()
 
bool FixParentChildHierarchyUsingParentIds ()
 
bool FixParentChildHierarchyUsingParentIds ()
 
virtual const RegionTypeGetBufferedRegion () const
 
virtual const RegionTypeGetBufferedRegion () const
 
virtual ChildrenListTypeGetChildren (unsigned int depth=0, const std::string &name="") const
 
virtual ChildrenListTypeGetChildren (unsigned int depth=0, const std::string &name="") const
 
virtual std::string GetClassNameAndDimension () const
 
virtual std::string GetClassNameAndDimension () const
 
virtual ChildrenConstListTypeGetConstChildren (unsigned int depth=0, const std::string &name="") const
 
virtual ChildrenConstListTypeGetConstChildren (unsigned int depth=0, const std::string &name="") const
 
virtual const BoundingBoxTypeGetFamilyBoundingBoxInObjectSpace () const
 
virtual const BoundingBoxTypeGetFamilyBoundingBoxInObjectSpace () const
 
virtual const BoundingBoxTypeGetFamilyBoundingBoxInWorldSpace () const
 
virtual const BoundingBoxTypeGetFamilyBoundingBoxInWorldSpace () const
 
virtual const RegionTypeGetLargestPossibleRegion () const
 
virtual const RegionTypeGetLargestPossibleRegion () const
 
unsigned int GetMaximumDepth () const
 
unsigned int GetMaximumDepth () const
 
ModifiedTimeType GetMTime () const override
 
ModifiedTimeType GetMTime () const override
 
virtual const BoundingBoxTypeGetMyBoundingBoxInObjectSpace () const
 
virtual const BoundingBoxTypeGetMyBoundingBoxInObjectSpace () const
 
virtual const BoundingBoxTypeGetMyBoundingBoxInWorldSpace () const
 
virtual const BoundingBoxTypeGetMyBoundingBoxInWorldSpace () const
 
ModifiedTimeType GetMyMTime () const
 
ModifiedTimeType GetMyMTime () const
 
const char * GetNameOfClass () const override
 
const char * GetNameOfClass () const override
 
int GetNextAvailableId () const
 
int GetNextAvailableId () const
 
unsigned int GetNumberOfChildren (unsigned int depth=0, const std::string &name="") const
 
unsigned int GetNumberOfChildren (unsigned int depth=0, const std::string &name="") const
 
SpatialObject< VDimension > * GetObjectById (int id)
 
SpatialObject< VDimension > * GetObjectById (int id)
 
unsigned int GetObjectDimension () const
 
unsigned int GetObjectDimension () const
 
virtual SelfGetParent ()
 
virtual SelfGetParent ()
 
virtual const SelfGetParent () const
 
virtual const SelfGetParent () const
 
PropertyTypeGetProperty ()
 
PropertyTypeGetProperty ()
 
const PropertyTypeGetProperty () const
 
const PropertyTypeGetProperty () const
 
virtual const RegionTypeGetRequestedRegion () const
 
virtual const RegionTypeGetRequestedRegion () const
 
virtual std::string GetTypeName () const
 
virtual std::string GetTypeName () const
 
virtual bool HasParent () const
 
virtual bool HasParent () const
 
virtual bool IsEvaluableAtChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
virtual bool IsEvaluableAtChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
virtual bool IsEvaluableAtInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
virtual bool IsEvaluableAtInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
bool IsEvaluableAtInWorldSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
bool IsEvaluableAtInWorldSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
virtual bool IsInsideChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
virtual bool IsInsideChildrenInObjectSpace (const PointType &point, unsigned int depth=0, const std::string &name="") const
 
bool IsInsideInObjectSpace (const PointType &point, unsigned int depth, const std::string &name="") const
 
bool IsInsideInObjectSpace (const PointType &point, unsigned int depth, const std::string &name="") const
 
bool IsInsideInWorldSpace (const PointType &point) const
 
bool IsInsideInWorldSpace (const PointType &point) const
 
bool IsInsideInWorldSpace (const PointType &point, unsigned int depth, const std::string &name="") const
 
bool IsInsideInWorldSpace (const PointType &point, unsigned int depth, const std::string &name="") const
 
void RemoveAllChildren (unsigned int depth=MaximumDepth)
 
void RemoveAllChildren (unsigned int depth=MaximumDepth)
 
bool RemoveChild (Self *pointer)
 
bool RemoveChild (Self *pointer)
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual void SetBufferedRegion (const RegionType &region)
 
void SetChildren (ChildrenListType &children)
 
void SetChildren (ChildrenListType &children)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
void SetParent (Self *parent)
 
void SetParent (Self *parent)
 
void SetRequestedRegion (const DataObject *data) override
 
void SetRequestedRegion (const DataObject *data) override
 
virtual void SetRequestedRegion (const RegionType &region)
 
virtual void SetRequestedRegion (const RegionType &region)
 
void SetRequestedRegionToLargestPossibleRegion () override
 
void SetRequestedRegionToLargestPossibleRegion () override
 
virtual void SetTypeName (std::string _arg)
 
virtual void SetTypeName (std::string _arg)
 
void Update () override
 
void Update () override
 
void UpdateOutputInformation () override
 
void UpdateOutputInformation () override
 
virtual bool ValueAtChildrenInObjectSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const
 
virtual bool ValueAtChildrenInObjectSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const
 
bool ValueAtInWorldSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const
 
bool ValueAtInWorldSpace (const PointType &point, double &value, unsigned int depth=0, const std::string &name="") const
 
bool VerifyRequestedRegion () override
 
bool VerifyRequestedRegion () override
 
void SetId (int id)
 
virtual const int & GetId () const
 
void SetId (int id)
 
virtual const int & GetId () const
 
void SetProperty (const PropertyType &property)
 
void SetProperty (const PropertyType &property)
 
void SetObjectToWorldTransform (const TransformType *transform)
 
virtual TransformTypeGetModifiableObjectToWorldTransform ()
 
virtual const TransformTypeGetObjectToWorldTransform () const
 
const TransformTypeGetObjectToWorldTransformInverse () const
 
void SetObjectToWorldTransform (const TransformType *transform)
 
virtual TransformTypeGetModifiableObjectToWorldTransform ()
 
virtual const TransformTypeGetObjectToWorldTransform () const
 
const TransformTypeGetObjectToWorldTransformInverse () const
 
void SetObjectToParentTransform (const TransformType *transform)
 
virtual TransformTypeGetModifiableObjectToParentTransform ()
 
virtual const TransformTypeGetObjectToParentTransform () const
 
const TransformTypeGetObjectToParentTransformInverse () const
 
void SetObjectToParentTransform (const TransformType *transform)
 
virtual TransformTypeGetModifiableObjectToParentTransform ()
 
virtual const TransformTypeGetObjectToParentTransform () const
 
const TransformTypeGetObjectToParentTransformInverse () const
 
virtual void SetDefaultInsideValue (double _arg)
 
virtual double GetDefaultInsideValue () const
 
virtual void SetDefaultInsideValue (double _arg)
 
virtual double GetDefaultInsideValue () const
 
virtual void SetDefaultOutsideValue (double _arg)
 
virtual double GetDefaultOutsideValue () const
 
virtual void SetDefaultOutsideValue (double _arg)
 
virtual double GetDefaultOutsideValue () const
 
virtual void SetParentId (int _arg)
 
virtual const int & GetParentId () const
 
virtual void SetParentId (int _arg)
 
virtual const int & GetParentId () const
 
- Public Member Functions inherited from itk::DataObject
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointer< ProcessObjectGetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierTypeGetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
virtual void Graft (const DataObject *)
 
virtual void Initialize ()
 
virtual void PrepareForNewData ()
 
virtual void PropagateRequestedRegion ()
 
void ReleaseData ()
 
virtual void ReleaseDataFlagOff ()
 
virtual void ReleaseDataFlagOn ()
 
virtual void ResetPipeline ()
 
void SetReleaseDataFlag (bool flag)
 
bool ShouldIReleaseData () const
 
virtual void UpdateOutputData ()
 
void UpdateSource () const
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeTypeGetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStampGetRealTimeStamp () 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
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary ()
 
const MetaDataDictionaryGetMetaDataDictionary () const
 
virtual const TimeStampGetTimeStamp () 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::SpatialObject< 3 >
static Pointer New ()
 
static Pointer New ()
 
- Static Public Member Functions inherited from itk::DataObject
static bool GetGlobalReleaseDataFlag ()
 
static void GlobalReleaseDataFlagOff ()
 
static void GlobalReleaseDataFlagOn ()
 
static Pointer New ()
 
static void SetGlobalReleaseDataFlag (bool val)
 
- 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 ObjectDimension = TDimension
 
- Static Public Attributes inherited from itk::SpatialObject< 3 >
static constexpr unsigned int MaximumDepth
 
static constexpr unsigned int MaximumDepth
 
static constexpr ObjectDimensionType ObjectDimension
 
static constexpr ObjectDimensionType ObjectDimension
 

Protected Member Functions

void ComputeMyBoundingBox () override
 
 ImageSpatialObject ()
 
LightObject::Pointer InternalClone () const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~ImageSpatialObject () override
 
- Protected Member Functions inherited from itk::SpatialObject< 3 >
BoundingBoxTypeGetModifiableMyBoundingBoxInObjectSpace ()
 
BoundingBoxTypeGetModifiableMyBoundingBoxInObjectSpace ()
 
LightObject::Pointer InternalClone () const override
 
LightObject::Pointer InternalClone () const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void ProtectedComputeObjectToWorldTransform ()
 
void ProtectedComputeObjectToWorldTransform ()
 
 SpatialObject ()=default
 
 SpatialObject ()=default
 
 ~SpatialObject () override
 
 ~SpatialObject () override
 
- Protected Member Functions inherited from itk::DataObject
 DataObject ()
 
virtual void PropagateResetPipeline ()
 
 ~DataObject () override
 
- 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
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

void UpdateImageRegions ()
 

Private Attributes

ImagePointer m_Image {}
 
InterpolatorType::Pointer m_Interpolator {}
 
IndexType m_SliceNumber {}
 

Additional Inherited Members

- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstPointer

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::ConstPointer = SmartPointer<const Self>

Definition at line 49 of file itkImageSpatialObject.h.

◆ ContinuousIndexType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::ContinuousIndexType = ContinuousIndex<double, TDimension>

Definition at line 51 of file itkImageSpatialObject.h.

◆ ImagePointer

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::ImagePointer = typename ImageType::ConstPointer

Definition at line 54 of file itkImageSpatialObject.h.

◆ ImageType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::ImageType = Image<PixelType, TDimension>

Definition at line 53 of file itkImageSpatialObject.h.

◆ IndexType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::IndexType = typename ImageType::IndexType

Definition at line 55 of file itkImageSpatialObject.h.

◆ InterpolatorType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::InterpolatorType = InterpolateImageFunction<ImageType>

Definition at line 57 of file itkImageSpatialObject.h.

◆ NNInterpolatorType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::NNInterpolatorType = NearestNeighborInterpolateImageFunction<ImageType>

Definition at line 59 of file itkImageSpatialObject.h.

◆ PixelType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::PixelType = TPixelType

Definition at line 52 of file itkImageSpatialObject.h.

◆ Pointer

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::Pointer = SmartPointer<Self>

Definition at line 48 of file itkImageSpatialObject.h.

◆ PointType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::SpatialObject< VDimension >::PointType

Definition at line 89 of file itkSpatialObject.h.

◆ ScalarType

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::ScalarType = double

Definition at line 45 of file itkImageSpatialObject.h.

◆ Self

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::Self = ImageSpatialObject<TDimension, TPixelType>

Definition at line 46 of file itkImageSpatialObject.h.

◆ Superclass

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
using itk::ImageSpatialObject< TDimension, TPixelType >::Superclass = SpatialObject<TDimension>

Definition at line 47 of file itkImageSpatialObject.h.

Constructor & Destructor Documentation

◆ ImageSpatialObject()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
itk::ImageSpatialObject< TDimension, TPixelType >::ImageSpatialObject ( )
protected

◆ ~ImageSpatialObject()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
itk::ImageSpatialObject< TDimension, TPixelType >::~ImageSpatialObject ( )
overrideprotected

Member Function Documentation

◆ Clear()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::Clear ( )
overridevirtual

Reset the spatial object to its initial condition, yet preserves Id, Parent, and Child information

Reimplemented from itk::SpatialObject< 3 >.

◆ ComputeMyBoundingBox()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::ComputeMyBoundingBox ( )
overrideprotectedvirtual

Compute the boundaries of the image spatial object.

Reimplemented from itk::SpatialObject< 3 >.

◆ CreateAnother()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
virtual::itk::LightObject::Pointer itk::ImageSpatialObject< TDimension, TPixelType >::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.

◆ GetImage()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
const ImageType * itk::ImageSpatialObject< TDimension, TPixelType >::GetImage ( ) const

Get a pointer to the image currently attached to the object.

◆ GetInterpolator()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
virtual InterpolatorType * itk::ImageSpatialObject< TDimension, TPixelType >::GetInterpolator ( ) const
virtual

Set/Get the interpolator.

◆ GetMTime()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
ModifiedTimeType itk::ImageSpatialObject< TDimension, TPixelType >::GetMTime ( ) const
overridevirtual

Returns the latest modified time of the object and its component.

Reimplemented from itk::Object.

◆ GetNameOfClass()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
const char * itk::ImageSpatialObject< TDimension, TPixelType >::GetNameOfClass ( ) const
overridevirtual
See also
LightObject::GetNameOfClass()

Reimplemented from itk::DataObject.

◆ GetSliceNumber() [1/2]

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
virtual IndexType itk::ImageSpatialObject< TDimension, TPixelType >::GetSliceNumber ( ) const
virtual

Get the slice position

◆ GetSliceNumber() [2/2]

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
int itk::ImageSpatialObject< TDimension, TPixelType >::GetSliceNumber ( unsigned int dimension)
inline

Get the slice position

Definition at line 114 of file itkImageSpatialObject.h.

◆ InternalClone()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
LightObject::Pointer itk::ImageSpatialObject< TDimension, TPixelType >::InternalClone ( ) const
overrideprotectedvirtual

Actual implementation of the clone method. This method should be reimplemented in subclasses to clone the extra required parameters.

Reimplemented from itk::LightObject.

◆ IsInsideInObjectSpace() [1/2]

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
bool itk::ImageSpatialObject< TDimension, TPixelType >::IsInsideInObjectSpace ( const PointType & point) const
overridevirtual

Returns true if the point is inside, false otherwise.

Reimplemented from itk::SpatialObject< 3 >.

◆ IsInsideInObjectSpace() [2/2]

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
bool itk::SpatialObject< VDimension >::IsInsideInObjectSpace ( const PointType & point,
unsigned int depth,
const std::string & name = "" ) const

Returns true if a point is inside the object or its children in object space.

◆ New()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
static Pointer itk::ImageSpatialObject< TDimension, TPixelType >::New ( )
static

Method for creation through the object factory.

◆ PrintSelf()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::PrintSelf ( std::ostream & os,
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::DataObject.

◆ SetImage()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::SetImage ( const ImageType * image)

Set the image.

◆ SetInterpolator()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::SetInterpolator ( InterpolatorType * interpolator)

Set/Get the interpolator.

◆ SetSliceNumber() [1/2]

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
virtual void itk::ImageSpatialObject< TDimension, TPixelType >::SetSliceNumber ( IndexType _arg)
virtual

Set the slice position

◆ SetSliceNumber() [2/2]

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::SetSliceNumber ( unsigned int dimension,
int position )

Set the slice position

◆ Update()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::Update ( )
overridevirtual

Updates the regions of this spatial object in accordance with its current image, and calls its Superclass.

Reimplemented from itk::DataObject.

◆ UpdateImageRegions()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
void itk::ImageSpatialObject< TDimension, TPixelType >::UpdateImageRegions ( )
private

Updates the regions of this spatial object in accordance with its current image.

◆ ValueAtInObjectSpace()

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
bool itk::ImageSpatialObject< TDimension, TPixelType >::ValueAtInObjectSpace ( const PointType & point,
double & value,
unsigned int depth = 0,
const std::string & name = "" ) const
overridevirtual

Returns the value of the image at the requested point.

Returns true if that value is valid.

The value returned is always of type double; for RGB Images the value returned is the value of the first channel.

Reimplemented from itk::SpatialObject< 3 >.

Member Data Documentation

◆ m_Image

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
ImagePointer itk::ImageSpatialObject< TDimension, TPixelType >::m_Image {}
private

Definition at line 152 of file itkImageSpatialObject.h.

◆ m_Interpolator

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
InterpolatorType::Pointer itk::ImageSpatialObject< TDimension, TPixelType >::m_Interpolator {}
private

Definition at line 160 of file itkImageSpatialObject.h.

◆ m_SliceNumber

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
IndexType itk::ImageSpatialObject< TDimension, TPixelType >::m_SliceNumber {}
private

Definition at line 154 of file itkImageSpatialObject.h.

◆ ObjectDimension

template<unsigned int TDimension = 3, typename TPixelType = unsigned char>
unsigned int itk::ImageSpatialObject< TDimension, TPixelType >::ObjectDimension = TDimension
staticconstexpr

Definition at line 61 of file itkImageSpatialObject.h.


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