[vtkusers] vtkImageIterator
P B
chose29 at hotmail.com
Tue Jul 29 12:28:06 EDT 2008
Hi Oliver,
after making some tests, finally the iterator works. I tested with an unmodified volume and was able to see the dicome image in 3D. Therefore I need to look at the manipulations I do to the vtkImageData I use,
Thanks,
Pascale
Date: Tue, 29 Jul 2008 09:51:50 +0200From: ptw.freiburg at googlemail.comTo: chose29 at hotmail.com; vtkusers at vtk.orgSubject: Re: [vtkusers] vtkImageIterator
Hello,what exactly does not wrk as expected ?Best regards,Oliver
2008/7/28 P B <chose29 at hotmail.com>
Hi, could anyone tell me what's wrong in the usage of iterator in the following code? I've been trying to use image iterators but am not sure if I have implementation problems or if the problem is elsewhere, with the creation of a transformed images that I want to output, Thanks!!Pascale in the following code, Image is a vtkImageData * : vtkImageIterator<unsigned short> *it = new vtkImageIterator<unsigned short>(Image, ext);unsigned short* Begin;while (!it->IsAtEnd()){ unsigned short* End = it->EndSpan(); for( Begin = it->BeginSpan(); Begin != End; Begin++) { val = (unsigned short)(*Begin); val; } it->NextSpan(); Count++;}
_______________________________________________This is the private VTK discussion list.Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQFollow this link to subscribe/unsubscribe:http://www.vtk.org/mailman/listinfo/vtkusers
_________________________________________________________________
Find hidden words, unscramble celebrity names, or try the ultimate crossword puzzle with Live Search Games. Play now!
http://g.msn.ca/ca55/212
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080729/4645c292/attachment.htm>
More information about the vtkusers
mailing list