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 );
258 virtual void SetSpacing(
const float *values );
273 virtual void SetOrigin(
const double *values );
275 virtual void SetOrigin(
const float *values );
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"
SizeType::SizeValueType SizeValueType
Superclass::RegionType RegionType
virtual void SetDirection(const DirectionType &direction)
Index< VImageDimension > IndexType
void TransformIndexToPhysicalPoint(const IndexType &index, Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point) const
itk::SizeValueType SizeValueType
const PixelContainer * GetPixelContainer() const
InternalPixelType * GetBufferPointer()
Superclass::SpacingType SpacingType
TImage::PixelContainer PixelContainer
virtual void UpdateOutputData()
signed long OffsetValueType
virtual void Allocate(bool initialize=false) ITK_OVERRIDE
virtual const RegionType & GetBufferedRegion() const
IndexType::IndexValueType IndexValueType
void TransformContinuousIndexToPhysicalPoint(const ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &index, Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point) const
virtual const SpacingType & GetSpacing() const
ImageBase< itkGetStaticConstMacro(ImageDimension) > Superclass
unsigned long ModifiedTimeType
InternalPixelType * InternalPixelPointerType
Image< UPixelType, UImageDimension > Type
AccessorType m_PixelAccessor
virtual void SetLargestPossibleRegion(const RegionType ®ion)
Implements a weak reference to an object.
void UpdateAccessor(typename::itk::VectorImage< TPixelType, ImageDimension > *)
PixelType GetPixel(const IndexType &index) const
Size< VImageDimension > SizeType
virtual bool VerifyRequestedRegion()
Point< PointValueType, VImageDimension > PointType
virtual void UpdateOutputInformation()
SmartPointer< Self > Pointer
virtual const PointType & GetOrigin() const
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 *)
PixelContainerPointer GetPixelContainer()
virtual void SetRequestedRegionToLargestPossibleRegion()
WeakPointer< const Self > ConstWeakPointer
virtual void SetBufferedRegion(const RegionType ®ion)
void SetPixelAccessor(const AccessorType &accessor)
TImage::PixelContainerConstPointer PixelContainerConstPointer
::itk::IndexValueType IndexValueType
TAccessor::InternalType InternalPixelType
TAccessor::ExternalType PixelType
virtual void SetSpacing(const SpacingType &values)
bool TransformPhysicalPointToContinuousIndex(const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point, ContinuousIndex< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &index) const
Get the continuous index from a physical point.
AccessorType & GetPixelAccessor(void)
Superclass::DirectionType DirectionType
Offset< VImageDimension > OffsetType
virtual void SetOrigin(const PointType values)
Superclass::SizeType SizeType
Vector< SpacingValueType, VImageDimension > SpacingType
void operator=(const Self &)
virtual void Initialize()
IndexType ComputeIndex(OffsetValueType offset) const
virtual const RegionType & GetLargestPossibleRegion() const
virtual void Modified() const
void SetPixel(const IndexType &index, const PixelType &value)
PixelType operator[](const IndexType &index) const
virtual void CopyInformation(const DataObject *data)
void TransformLocalVectorToPhysicalVector(const FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &inputGradient, FixedArray< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &outputGradient) const
virtual void Graft(const DataObject *data)
Base class for templated image classes.
A templated class holding a point in n-Dimensional image space.
virtual const DirectionType & GetDirection() const
void SetPixelContainer(PixelContainer *container)
Control indentation during Print() invocation.
OffsetType::OffsetValueType OffsetValueType
bool TransformPhysicalPointToIndex(const Point< TCoordRep, itkGetStaticConstMacro(ImageDimension) > &point, IndexType &index) const
Superclass::IndexType IndexType
virtual const RegionType & GetRequestedRegion() const
Superclass::PointType PointType
const OffsetValueType * GetOffsetTable() const
TImage::PixelContainerPointer PixelContainerPointer
ImageRegion< VImageDimension > RegionType
virtual void PropagateRequestedRegion()
Give access to partial aspects of voxels from an Image.
itk::OffsetValueType OffsetValueType
Superclass::OffsetType OffsetType
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.
virtual void SetRequestedRegion(const RegionType ®ion)
virtual ModifiedTimeType GetMTime() const
void PrintSelf(std::ostream &os, Indent indent) const