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>
226 {
return m_Image->GetPixelContainer(); }
229 {
return m_Image->GetPixelContainer(); }
259 virtual void SetSpacing(
const double *values );
261 virtual void SetSpacing(
const float *values );
276 virtual void SetOrigin(
const double *values );
278 virtual void SetOrigin(
const float *values );
331 template< typename TCoordRep >
333 const
Point< TCoordRep,
338 return m_Image->TransformPhysicalPointToContinuousIndex(point, index);
345 template<
typename TCoordRep >
347 const Point< TCoordRep,
351 return m_Image->TransformPhysicalPointToIndex(point, index);
358 template<
typename TCoordRep >
365 m_Image->TransformContinuousIndexToPhysicalPoint(index, point);
373 template<
typename TCoordRep >
379 m_Image->TransformIndexToPhysicalPoint(index, point);
382 template<
typename TCoordRep >
387 m_Image->TransformLocalVectorToPhysicalVector(inputGradient, outputGradient);
390 template<
typename TCoordRep >
395 m_Image->TransformPhysicalVectorToLocalVector(inputGradient, outputGradient);
411 template<
typename TPixelType >
412 void UpdateAccessor( typename ::itk::VectorImage< TPixelType, ImageDimension > * itkNotUsed( dummy ) )
430 #ifndef ITK_MANUAL_INSTANTIATION
431 #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 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