Skip to content
Snippets Groups Projects
Commit d8d884a9 authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

Ajout des methodes sur les accesseurs et de la definition de WeakPointerType.

MERCI JULIEEEEEEEEEEEEEEEEN.
parent e66f88d5
No related branches found
No related tags found
No related merge requests found
......@@ -49,6 +49,7 @@ public:
typedef itk::VectorImage<TPixel, VImageDimension> Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
typedef itk::WeakPointer<const Self> ConstWeakPointer;
typedef ImageBase::VectorType VectorType;
typedef ImageBase::ImageKeywordlistType ImageKeywordlistType;
......@@ -154,6 +155,22 @@ public:
void PrintSelf(std::ostream& os, itk::Indent indent) const;
/** Return the Pixel Accessor object */
AccessorType GetPixelAccessor( void )
{ return AccessorType( this->GetNumberOfComponentsPerPixel() ); }
/** Return the Pixel Accesor object */
const AccessorType GetPixelAccessor( void ) const
{ return AccessorType( this->GetNumberOfComponentsPerPixel() ); }
/** Return the NeighborhoodAccessor functor */
NeighborhoodAccessorFunctorType GetNeighborhoodAccessor()
{ return NeighborhoodAccessorFunctorType( this->GetNumberOfComponentsPerPixel() ); }
/** Return the NeighborhoodAccessor functor */
const NeighborhoodAccessorFunctorType GetNeighborhoodAccessor() const
{ return NeighborhoodAccessorFunctorType(this->GetNumberOfComponentsPerPixel()); }
protected:
VectorImage();
virtual ~VectorImage(){};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment