ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension > Class Template Reference

#include <itkTestingGetBufferPointerCountingImage.h>

Detailed Description

template<typename TPixel, unsigned int VImageDimension = 2>
class itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >

Image that counts calls to its non-const GetBufferPointer(), like CudaImage relies on.

Definition at line 30 of file itkTestingGetBufferPointerCountingImage.h.

+ Inheritance diagram for itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >:
+ Collaboration diagram for itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >:

Public Types

using ConstWeakPointer = WeakPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = GetBufferPointerCountingImage
 
using Superclass = Image<TPixel, VImageDimension>
 
- Public Types inherited from itk::Image< TPixel, 2 >
using AccessorFunctorType
 
using AccessorType
 
using ConstPointer
 
using ConstWeakPointer
 
typedef Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
 
using DirectionType
 
typedef unsigned int ImageDimensionType
 
using ImageDimensionType
 
typedef Index< VImageDimension > IndexType
 
using IndexType
 
typedef typename IndexType::IndexValueType IndexValueType
 
using IndexValueType
 
using InternalPixelType
 
using IOPixelType
 
using NeighborhoodAccessorFunctorType
 
typedef Offset< VImageDimension > OffsetType
 
using OffsetType
 
typedef typename OffsetType::OffsetValueType OffsetValueType
 
using OffsetValueType
 
using PixelContainer
 
using PixelContainerConstPointer
 
using PixelContainerPointer
 
using PixelType
 
using Pointer
 
typedef Point< PointValueType, VImageDimension > PointType
 
using PointType
 
using RebindImageType
 
typedef ImageRegion< VImageDimension > RegionType
 
using RegionType
 
using Self
 
typedef Size< VImageDimension > SizeType
 
using SizeType
 
typedef typename SizeType::SizeValueType SizeValueType
 
using SizeValueType
 
typedef Vector< SpacingValueType, VImageDimension > SpacingType
 
using SpacingType
 
typedef SpacePrecisionType SpacingValueType
 
using SpacingValueType
 
using Superclass
 
using ValueType
 
- Public Types inherited from itk::ImageBase< VImageDimension >
using ConstPointer
 
using ConstPointer
 
using DirectionType
 
using DirectionType
 
using ImageDimensionType
 
using ImageDimensionType
 
using IndexType
 
using IndexType
 
using IndexValueType
 
using IndexValueType
 
using OffsetType
 
using OffsetType
 
using OffsetValueType
 
using OffsetValueType
 
using Pointer
 
using Pointer
 
using PointType
 
using PointType
 
using PointValueType
 
using PointValueType
 
using RegionType
 
using RegionType
 
using Self
 
using Self
 
using SizeType
 
using SizeType
 
using SizeValueType
 
using SizeValueType
 
using SpacingType
 
using SpacingType
 
using SpacingValueType
 
using SpacingValueType
 
using Superclass
 
using Superclass
 
- 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

virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual const TPixel * GetBufferPointer () const
 
TPixel * GetBufferPointer () override
 
vcl_size_t GetNumberOfNonConstGetBufferPointerCalls () const
 
- Public Member Functions inherited from itk::Image< TPixel, 2 >
void Allocate (bool initializePixels=false) override
 
virtual::itk::LightObject::Pointer CreateAnother () const
 
void FillBuffer (const TPixel &value)
 
virtual const char * GetNameOfClass () const
 
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor ()
 
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor () const
 
unsigned int GetNumberOfComponentsPerPixel () const override
 
TPixel & GetPixel (const IndexType &index)
 
const TPixel & GetPixel (const IndexType &index) const
 
AccessorType GetPixelAccessor ()
 
const AccessorType GetPixelAccessor () const
 
PixelContainer * GetPixelContainer ()
 
const PixelContainer * GetPixelContainer () const
 
virtual void Graft (const Self *image)
 
void Initialize () override
 
TPixel & operator[] (const IndexType &index)
 
const TPixel & operator[] (const IndexType &index) const
 
void SetPixel (const IndexType &index, const TPixel &value)
 
void SetPixelContainer (PixelContainer *container)
 
- Public Member Functions inherited from itk::ImageBase< VImageDimension >
void AllocateInitialized ()
 
void AllocateInitialized ()
 
IndexType ComputeIndex (OffsetValueType offset) const
 
IndexType ComputeIndex (OffsetValueType offset) const
 
OffsetValueType ComputeOffset (const IndexType &ind) const
 
OffsetValueType ComputeOffset (const IndexType &ind) const
 
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 const RegionType & GetBufferedRegion () const
 
virtual const RegionType & GetBufferedRegion () const
 
virtual const DirectionType & GetInverseDirection () const
 
virtual const DirectionType & GetInverseDirection () const
 
virtual const RegionType & GetLargestPossibleRegion () const
 
virtual const RegionType & GetLargestPossibleRegion () const
 
const OffsetValueType * GetOffsetTable () const
 
const OffsetValueType * GetOffsetTable () const
 
virtual const RegionType & GetRequestedRegion () const
 
virtual const RegionType & GetRequestedRegion () const
 
void Initialize () override
 
void Initialize () override
 
bool IsCongruentImageGeometry (const ImageBase *otherImage, double coordinateTolerance, double directionTolerance) const
 
bool IsCongruentImageGeometry (const ImageBase *otherImage, double coordinateTolerance, double directionTolerance) const
 
bool IsSameImageGeometryAs (const ImageBase *otherImage, double coordinateTolerance=DefaultImageCoordinateTolerance, double directionTolerance=DefaultImageDirectionTolerance) const
 
bool IsSameImageGeometryAs (const ImageBase *otherImage, double coordinateTolerance=DefaultImageCoordinateTolerance, double directionTolerance=DefaultImageDirectionTolerance) const
 
 itkVirtualGetConstReferenceMacro (Direction, DirectionType)
 
 itkVirtualGetConstReferenceMacro (Direction, DirectionType)
 
 itkVirtualGetConstReferenceMacro (Origin, PointType)
 
 itkVirtualGetConstReferenceMacro (Origin, PointType)
 
 itkVirtualGetConstReferenceMacro (Spacing, SpacingType)
 
 itkVirtualGetConstReferenceMacro (Spacing, SpacingType)
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
bool RequestedRegionIsOutsideOfTheBufferedRegion () override
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual void SetBufferedRegion (const RegionType &region)
 
virtual void SetDirection (const DirectionType &direction)
 
virtual void SetDirection (const DirectionType &direction)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
virtual void SetLargestPossibleRegion (const RegionType &region)
 
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
 
Point< TCoordinate, VImageDimension > TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
Point< TCoordinate, VImageDimension > TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
void TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordinate, VImageDimension > &point) const
 
void TransformContinuousIndexToPhysicalPoint (const ContinuousIndex< TIndexRep, VImageDimension > &index, Point< TCoordinate, VImageDimension > &point) const
 
Point< TCoordinate, VImageDimension > TransformIndexToPhysicalPoint (const IndexType &index) const
 
Point< TCoordinate, VImageDimension > TransformIndexToPhysicalPoint (const IndexType &index) const
 
void TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordinate, VImageDimension > &point) const
 
void TransformIndexToPhysicalPoint (const IndexType &index, Point< TCoordinate, VImageDimension > &point) const
 
void TransformLocalVectorToPhysicalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
void TransformLocalVectorToPhysicalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
TVector TransformLocalVectorToPhysicalVector (const TVector &inputGradient) const
 
TVector TransformLocalVectorToPhysicalVector (const TVector &inputGradient) const
 
ContinuousIndex< TIndexRep, VImageDimension > TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point) const
 
ContinuousIndex< TIndexRep, VImageDimension > TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point) const
 
bool TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
bool TransformPhysicalPointToContinuousIndex (const Point< TCoordinate, VImageDimension > &point, ContinuousIndex< TIndexRep, VImageDimension > &index) const
 
IndexType TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point) const
 
IndexType TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point) const
 
bool TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point, IndexType &index) const
 
bool TransformPhysicalPointToIndex (const Point< TCoordinate, VImageDimension > &point, IndexType &index) const
 
void TransformPhysicalVectorToLocalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
void TransformPhysicalVectorToLocalVector (const FixedArray< TCoordinate, VImageDimension > &inputGradient, FixedArray< TCoordinate, VImageDimension > &outputGradient) const
 
TVector TransformPhysicalVectorToLocalVector (const TVector &inputGradient) const
 
TVector TransformPhysicalVectorToLocalVector (const TVector &inputGradient) const
 
void UpdateOutputData () override
 
void UpdateOutputData () override
 
void UpdateOutputInformation () override
 
void UpdateOutputInformation () override
 
bool VerifyRequestedRegion () override
 
bool VerifyRequestedRegion () override
 
 itkVirtualSetMacro (Origin, PointType)
 
virtual void SetOrigin (const double origin[VImageDimension])
 
virtual void SetOrigin (const float origin[VImageDimension])
 
 itkVirtualSetMacro (Origin, PointType)
 
virtual void SetOrigin (const double origin[VImageDimension])
 
virtual void SetOrigin (const float origin[VImageDimension])
 
virtual void SetRegions (const RegionType &region)
 
virtual void SetRegions (const SizeType &size)
 
virtual void SetRegions (const RegionType &region)
 
virtual void SetRegions (const SizeType &size)
 
virtual void SetSpacing (const SpacingType &spacing)
 
virtual void SetSpacing (const double spacing[VImageDimension])
 
virtual void SetSpacing (const float spacing[VImageDimension])
 
virtual void SetSpacing (const SpacingType &spacing)
 
virtual void SetSpacing (const double spacing[VImageDimension])
 
virtual void SetSpacing (const float spacing[VImageDimension])
 
virtual void SetNumberOfComponentsPerPixel (unsigned int)
 
virtual void SetNumberOfComponentsPerPixel (unsigned int)
 
- Public Member Functions inherited from itk::DataObject
virtual void DataHasBeenGenerated ()
 
void DisconnectPipeline ()
 
bool GetDataReleased () const
 
virtual const bool & GetReleaseDataFlag () const
 
SmartPointer< ProcessObject > GetSource () const
 
DataObjectPointerArraySizeType GetSourceOutputIndex () const
 
const DataObjectIdentifierType & GetSourceOutputName () const
 
virtual ModifiedTimeType GetUpdateMTime () const
 
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 Update ()
 
void UpdateSource () const
 
void SetPipelineMTime (ModifiedTimeType time)
 
virtual const ModifiedTimeType & GetPipelineMTime () const
 
virtual void SetRealTimeStamp (RealTimeStamp _arg)
 
virtual const RealTimeStamp & GetRealTimeStamp () 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::Image< TPixel, 2 >
static Pointer CreateInitialized (const RegionType &region)
 
static Pointer New ()
 
- Static Public Member Functions inherited from itk::ImageBase< VImageDimension >
static constexpr unsigned int GetImageDimension ()
 
static constexpr unsigned int GetImageDimension ()
 
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 ()
 

Private Attributes

vcl_size_t m_NumberOfNonConstGetBufferPointerCalls {}
 

Additional Inherited Members

- Static Public Attributes inherited from itk::ImageBase< VImageDimension >
static constexpr ImageDimensionType ImageDimension
 
static constexpr ImageDimensionType ImageDimension
 
- Protected Member Functions inherited from itk::Image< TPixel, 2 >
void ComputeIndexToPhysicalPointMatrices () override
 
void Graft (const DataObject *data) override
 
virtual void Graft (const Self *image)
 
virtual void Graft (const Self *image)
 
 Image ()=default
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~Image () override=default
 
- Protected Member Functions inherited from itk::ImageBase< VImageDimension >
void ComputeOffsetTable ()
 
void ComputeOffsetTable ()
 
IndexType FastComputeIndex (OffsetValueType offset) const
 
IndexType FastComputeIndex (OffsetValueType offset) const
 
OffsetValueType FastComputeOffset (const IndexType &ind) const
 
OffsetValueType FastComputeOffset (const IndexType &ind) const
 
void Graft (const DataObject *data) override
 
void Graft (const DataObject *data) override
 
 ImageBase ()=default
 
 ImageBase ()=default
 
virtual void InitializeBufferedRegion ()
 
virtual void InitializeBufferedRegion ()
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
 ~ImageBase () override=default
 
 ~ImageBase () override=default
 
- 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
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
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 ()
 
- Protected Attributes inherited from itk::ImageBase< VImageDimension >
SpacingType m_Spacing
 
PointType m_Origin
 
DirectionType m_Direction
 
DirectionType m_InverseDirection
 
SpacingType m_Spacing
 
PointType m_Origin
 
DirectionType m_Direction
 
DirectionType m_InverseDirection
 
DirectionType m_IndexToPhysicalPoint
 
DirectionType m_PhysicalPointToIndex
 
DirectionType m_IndexToPhysicalPoint
 
DirectionType m_PhysicalPointToIndex
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ ConstWeakPointer

template<typename TPixel, unsigned int VImageDimension = 2>
using itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::ConstWeakPointer = WeakPointer<const Self>

Definition at line 36 of file itkTestingGetBufferPointerCountingImage.h.

◆ Pointer

template<typename TPixel, unsigned int VImageDimension = 2>
using itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::Pointer = SmartPointer<Self>

Definition at line 35 of file itkTestingGetBufferPointerCountingImage.h.

◆ Self

template<typename TPixel, unsigned int VImageDimension = 2>
using itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::Self = GetBufferPointerCountingImage

Definition at line 33 of file itkTestingGetBufferPointerCountingImage.h.

◆ Superclass

template<typename TPixel, unsigned int VImageDimension = 2>
using itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::Superclass = Image<TPixel, VImageDimension>

Definition at line 34 of file itkTestingGetBufferPointerCountingImage.h.

Member Function Documentation

◆ CreateAnother()

template<typename TPixel, unsigned int VImageDimension = 2>
virtual::itk::LightObject::Pointer itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::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.

References itk::Image< TPixel, VImageDimension >::GetBufferPointer().

◆ GetBufferPointer() [1/2]

template<typename TPixel, unsigned int VImageDimension = 2>
virtual const TPixel * itk::Image< TPixel, VImageDimension >::GetBufferPointer ( ) const
inlinevirtual

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

Reimplemented from itk::Image< TPixel, 2 >.

Definition at line 275 of file itkImage.h.

◆ GetBufferPointer() [2/2]

template<typename TPixel, unsigned int VImageDimension = 2>
TPixel * itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::GetBufferPointer ( )
inlineoverridevirtual

Return a pointer to the beginning of the buffer. This is used by the image iterator class.

Reimplemented from itk::Image< TPixel, 2 >.

Definition at line 43 of file itkTestingGetBufferPointerCountingImage.h.

References itk::Image< TPixel, VImageDimension >::GetBufferPointer(), and m_NumberOfNonConstGetBufferPointerCalls.

◆ GetNumberOfNonConstGetBufferPointerCalls()

template<typename TPixel, unsigned int VImageDimension = 2>
vcl_size_t itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::GetNumberOfNonConstGetBufferPointerCalls ( ) const
inlinenodiscard

◆ New()

template<typename TPixel, unsigned int VImageDimension = 2>
static Pointer itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::New ( )
static

Member Data Documentation

◆ m_NumberOfNonConstGetBufferPointerCalls

template<typename TPixel, unsigned int VImageDimension = 2>
vcl_size_t itk::Testing::GetBufferPointerCountingImage< TPixel, VImageDimension >::m_NumberOfNonConstGetBufferPointerCalls {}
private

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