[vtkusers] vtkImageIterator
P B
chose29 at hotmail.com
Mon Jul 28 15:02:38 EDT 2008
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++;
}
_________________________________________________________________
If you like crossword puzzles, then you'll love Flexicon, a game which combines four overlapping crossword puzzles into one!
http://g.msn.ca/ca55/208
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080728/b1c954c4/attachment.htm>
More information about the vtkusers
mailing list