[Insight-developers] VectorImage Type and SliceIterator

Christopher Wyatt clwyatt at vt.edu
Wed Apr 29 13:53:24 EDT 2009


Hi all,

I ran into a small issue using itk::ImageSliceIteratorWithIndex
with VectorImage types. The Set method could not be used
because the AccessorFunctor was not being used for access.

The following diff fixes the issue if someone wants to
check in a fix.

Thanks,

-- chris.

-------------------------------------
Christopher Wyatt, clwyatt at vt.edu
Associate Professor
Electrical and Computer Engineering
Virginia Tech



Index: itkImageSliceIteratorWithIndex.h
===================================================================
RCS file: /cvsroot/Insight/Insight/Code/Common/ 
itkImageSliceIteratorWithIndex.h,v
retrieving revision 1.11
diff -r1.11 itkImageSliceIteratorWithIndex.h
108c108
<     { this->m_PixelAccessor.Set(*(const_cast<InternalPixelType *> 
(this->m_Position)),value); }
---
 >     { this->m_PixelAccessorFunctor.Set(* 
(const_cast<InternalPixelType *>(this->m_Position)),value); }



More information about the Insight-developers mailing list