[Insight-users] Iterators problem
Seth Gilchrist
seth at mech.ubc.ca
Thu Oct 21 12:35:14 EDT 2010
Hi Jinzhong,
Have you tried casting the image before or pixel during the operation? You
could make "imagexDouble" before starting using itk::CastImageFilter, or do
it during the operation using C-style casting:
for (iteratorx.GoToBegin(), iteratorlambda1.GoToBegin();
!iteratorx.IsAtEnd(); ++iteratorx, ++iteratorlambda1)
{
iteratorlambda1.Set( *(double)* iteratorx.Get() );
}
Hope that helps,
Seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101021/92e2a39f/attachment.htm>
More information about the Insight-users
mailing list