<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'><BR>Hi Oliver,<BR>
&nbsp;<BR>
&nbsp;&nbsp; after making some tests, finally the iterator works. I tested with an unmodified volume and was able to see the dicome image&nbsp;in 3D. Therefore I need to look at the manipulations I do to the vtkImageData I use,<BR>
&nbsp;<BR>
Thanks,<BR>
Pascale<BR><BR><BR><BR>

<HR id=EC_stopSpelling>
<BR>
Date: Tue, 29 Jul 2008 09:51:50 +0200<BR>From: ptw.freiburg@googlemail.com<BR>To: chose29@hotmail.com; vtkusers@vtk.org<BR>Subject: Re: [vtkusers] vtkImageIterator<BR><BR><BR>
<DIV dir=ltr>Hello,<BR>what exactly does not wrk as expected ?<BR>Best regards,<BR>Oliver<BR><BR>
<DIV class=EC_gmail_quote>2008/7/28 P B <SPAN dir=ltr>&lt;<A href="mailto:chose29@hotmail.com">chose29@hotmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex">
<DIV><FONT size=2><FONT size=2><FONT size=2><FONT size=2>Hi,</FONT></FONT></FONT></FONT><BR>&nbsp;<BR>&nbsp;&nbsp; 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,<BR>&nbsp;<BR>Thanks!!<BR>Pascale<BR>&nbsp;<BR><FONT size=2><FONT size=2><FONT size=2><FONT size=2>in the following code, </FONT></FONT></FONT></FONT><FONT size=2><FONT size=2><FONT size=2><FONT size=2>Image is a vtkImageData * :</FONT></FONT></FONT></FONT><BR><FONT size=2><FONT size=2><FONT size=2><FONT size=2>&nbsp;<BR><FONT color=#000000>vtkImageIterator&lt;</FONT></FONT><FONT color=#000000><FONT size=2>unsigned</FONT><FONT size=2> </FONT><FONT size=2>short</FONT><FONT size=2>&gt; *it = </FONT><FONT size=2>new</FONT><FONT size=2> vtkImageIterator&lt;</FONT><FONT size=2>unsigned</FONT><FONT size=2> </FONT><FONT size=2>short</FONT><FONT size=2>&gt;(Image, ext);</FONT></FONT><BR><FONT size=2><FONT size=2><FONT color=#000000><FONT color=#008000 size=2><FONT color=#000000>unsigned short* Begin;</FONT><BR><FONT color=#000000>while (!it-&gt;IsAtEnd())</FONT><BR><FONT color=#000000>{</FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned short* End = it-&gt;EndSpan();</FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for( Begin = it-&gt;BeginSpan(); Begin != End; Begin++)</FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; val = (unsigned short)(*Begin);</FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; val; </FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; it-&gt;NextSpan();</FONT><BR><FONT color=#000000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Count++;</FONT><BR><FONT color=#000000>}</FONT><BR></FONT></FONT></FONT><FONT size=2>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR></FONT></FONT></FONT></FONT></FONT><BR>
<HR>
<A target=_blank></A></DIV><BR>_______________________________________________<BR>This is the private VTK discussion list.<BR>Please keep messages on-topic. Check the FAQ at: <A href="http://www.vtk.org/Wiki/VTK_FAQ" target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR>Follow this link to subscribe/unsubscribe:<BR><A href="http://www.vtk.org/mailman/listinfo/vtkusers" target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV><br /><hr /> <a href='' target='_new'></a></body>
</html>