18 #ifndef itkImageAdaptor_h
19 #define itkImageAdaptor_h
26 template <
typename TPixelType,
unsigned int VImageDimension >
class VectorImage;
54 template<
typename TImage,
typename TAccessor >
83 typedef typename TAccessor::ExternalType
PixelType;
97 typedef typename InternalImageType::AccessorFunctorType::template Rebind< Self >::Type
AccessorFunctorType;
134 template <
typename UPixelType,
unsigned int UImageDimension = TImage::ImageDimension>
191 virtual
void Allocate(
bool initialize = false) ITK_OVERRIDE;
223 {
return m_Image->GetPixelContainer(); }
226 {
return m_Image->GetPixelContainer(); }
256 virtual void SetSpacing(
const double *values ) ITK_OVERRIDE;
258 virtual void SetSpacing(
const float *values ) ITK_OVERRIDE;
273 virtual
void SetOrigin(const
double *values ) ITK_OVERRIDE;
275 virtual
void SetOrigin(const
float *values ) ITK_OVERRIDE;
289 virtual
void Modified() const ITK_OVERRIDE;
307 virtual void Update() ITK_OVERRIDE;
327 template< typename TCoordRep >
329 const
Point< TCoordRep,
334 return m_Image->TransformPhysicalPointToContinuousIndex(point, index);
341 template<
typename TCoordRep >
343 const Point< TCoordRep,
347 return m_Image->TransformPhysicalPointToIndex(point, index);
354 template<
typename TCoordRep >
361 m_Image->TransformContinuousIndexToPhysicalPoint(index, point);
369 template<
typename TCoordRep >
375 m_Image->TransformIndexToPhysicalPoint(index, point);
378 template<
typename TCoordRep >
383 m_Image->TransformLocalVectorToPhysicalVector(inputGradient, outputGradient);
386 template<
typename TCoordRep >
391 m_Image->TransformPhysicalVectorToLocalVector(inputGradient, outputGradient);
407 template<
typename TPixelType >
408 void UpdateAccessor( typename ::itk::VectorImage< TPixelType, ImageDimension > * itkNotUsed( dummy ) )
426 #ifndef ITK_MANUAL_INSTANTIATION
427 #include "itkImageAdaptor.hxx"
virtual void SetRequestedRegion(const RegionType ®ion) override
SizeType::SizeValueType SizeValueType
Superclass::RegionType RegionType
virtual void PropagateRequestedRegion() override
virtual void SetOrigin(const PointType values) override
Index< VImageDimension > IndexType
void TransformIndexToPhysicalPoint(const IndexType &index, Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point) const
itk::SizeValueType SizeValueType
virtual const RegionType & GetBufferedRegion() const override
const PixelContainer * GetPixelContainer() const
InternalPixelType * GetBufferPointer()
Superclass::SpacingType SpacingType
TImage::PixelContainer PixelContainer
signed long OffsetValueType
IndexType::IndexValueType IndexValueType
void TransformContinuousIndexToPhysicalPoint(const ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &index, Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point) const
ImageBase< itkGetStaticConstMacro(ImageDimension) > Superclass
unsigned long ModifiedTimeType
InternalPixelType * InternalPixelPointerType
virtual void UpdateOutputData() override
virtual void Modified() const override
virtual const DirectionType & GetDirection() const override
virtual void UpdateOutputInformation() override
Image< UPixelType, UImageDimension > Type
virtual void SetBufferedRegion(const RegionType ®ion) override
AccessorType m_PixelAccessor
Implements a weak reference to an object.
void UpdateAccessor(typename::itk::VectorImage< TPixelType, ImageDimension > *)
PixelType GetPixel(const IndexType &index) const
virtual const RegionType & GetLargestPossibleRegion() const override
Size< VImageDimension > SizeType
Point< PointValueType, VImageDimension > PointType
SmartPointer< Self > Pointer
Matrix< SpacePrecisionType, VImageDimension, VImageDimension > DirectionType
static const unsigned int ImageDimension
Simulate a standard C array with copy semnatics.
InternalImageType::AccessorFunctorType::template Rebind< Self >::Type AccessorFunctorType
const AccessorType & GetPixelAccessor(void) const
virtual void SetImage(TImage *)
virtual void Allocate(bool initialize=false) override
PixelContainerPointer GetPixelContainer()
WeakPointer< const Self > ConstWeakPointer
virtual void Initialize() override
void SetPixelAccessor(const AccessorType &accessor)
TImage::PixelContainerConstPointer PixelContainerConstPointer
::itk::IndexValueType IndexValueType
void PrintSelf(std::ostream &os, Indent indent) const override
virtual void SetDirection(const DirectionType &direction) override
TAccessor::InternalType InternalPixelType
TAccessor::ExternalType PixelType
bool TransformPhysicalPointToContinuousIndex(const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point, ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &index) const
Get the continuous index from a physical point.
virtual const RegionType & GetRequestedRegion() const override
AccessorType & GetPixelAccessor(void)
Superclass::DirectionType DirectionType
Offset< VImageDimension > OffsetType
Superclass::SizeType SizeType
Vector< SpacingValueType, VImageDimension > SpacingType
virtual void Update() override
void operator=(const Self &)
IndexType ComputeIndex(OffsetValueType offset) const
virtual const PointType & GetOrigin() const override
void SetPixel(const IndexType &index, const PixelType &value)
virtual void SetRequestedRegionToLargestPossibleRegion() override
PixelType operator[](const IndexType &index) const
void TransformLocalVectorToPhysicalVector(const FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &inputGradient, FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &outputGradient) const
virtual void SetLargestPossibleRegion(const RegionType ®ion) override
virtual void Graft(const DataObject *data) override
Base class for templated image classes.
A templated class holding a point in n-Dimensional image space.
void SetPixelContainer(PixelContainer *container)
virtual void SetSpacing(const SpacingType &values) override
Control indentation during Print() invocation.
virtual ModifiedTimeType GetMTime() const override
OffsetType::OffsetValueType OffsetValueType
bool TransformPhysicalPointToIndex(const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point, IndexType &index) const
Superclass::IndexType IndexType
Superclass::PointType PointType
const OffsetValueType * GetOffsetTable() const
TImage::PixelContainerPointer PixelContainerPointer
ImageRegion< VImageDimension > RegionType
virtual const SpacingType & GetSpacing() const override
Give access to partial aspects of voxels from an Image.
virtual bool VerifyRequestedRegion() override
itk::OffsetValueType OffsetValueType
Superclass::OffsetType OffsetType
virtual void CopyInformation(const DataObject *data) override
void TransformPhysicalVectorToLocalVector(const FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &inputGradient, FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &outputGradient) const
SmartPointer< const Self > ConstPointer
Base class for all data objects in ITK.
Templated n-dimensional image class.