[Insight-developers] VectorImage Type and SliceIterator
Karthik Krishnan
karthik.krishnan at kitware.com
Tue May 19 09:49:39 EDT 2009
Indeed a bug. Thanks for the report. The fix has been committed and should
appear in the upcoming release of ITK.
---
cvs ci -m "BUG: The pixel accessor functor should be used instead of the
pixel accessor to add the level of indirection that makes this work with
itk::VectorImage in addition to itk::Image. Thanks to report by Christopher
Wyatt from Virginia Tech." itkImageSliceIteratorWithIndex.h
/cvsroot/Insight/Insight/Code/Common/itkImageSliceIteratorWithIndex.h,v
<-- itkImageSliceIteratorWithIndex.h
new revision: 1.12; previous revision: 1.11
---
Thanks
--
karthik
On Wed, Apr 29, 2009 at 1:53 PM, Christopher Wyatt <clwyatt at vt.edu> wrote:
> 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); }
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20090519/9c78284a/attachment.htm>
More information about the Insight-developers
mailing list