Hi Vidya,<div><br></div><div>Your solution did the trick. Surprisingly, nobody from ITK realized that? It has been a problem which bothered me for so long time.&nbsp;</div><div><br></div><div>Thanks so much for your help,</div>
<div>Ming</div><div><br><br><div class="gmail_quote">On Mon, Nov 3, 2008 at 12:52 PM, Vidya Rajagopalan <span dir="ltr">&lt;<a href="mailto:vidyaraj@vt.edu">vidyaraj@vt.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello Ming,<br>
<br>
VTK sometimes has problems with deformation fields generated in ITK<br>
(*.vtk format). VTK sometimes cannot read the header output by ITK. If<br>
you are saving the deformation fields as *.vtk files, trying saving them<br>
as *.mha. This has worked for me in the past.<br>
GoodLuck,<br>
Vidya Rajagopalan<br>
Virginia Tech<br>
<br>
&gt; Message: 2<br>
&gt; Date: Mon, 3 Nov 2008 09:23:28 -0600<br>
<div class="Ih2E3d">&gt; From: &quot;Ming Chao&quot; &lt;<a href="mailto:mingchao2005@gmail.com">mingchao2005@gmail.com</a>&gt;<br>
</div>&gt; Subject: [Insight-users] Fwd: deformation field<br>
&gt; To: &quot;Insight Users&quot; &lt;<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;, &nbsp;&quot;Luis Ibanez&quot;<br>
&gt; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>
&gt; Message-ID:<br>
&gt; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:c45aaa1c0811030723y39885c1dxfd794da1c36a09a6@mail.gmail.com">c45aaa1c0811030723y39885c1dxfd794da1c36a09a6@mail.gmail.com</a>&gt;<br>
&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<div><div></div><div class="Wj3C7c">&gt;<br>
&gt; Last week, I posted this problem when using deformation in ITK. Nobody<br>
&gt; looked into the problem. Luis, could you please help?<br>
&gt; Thanks very much,<br>
&gt; Ming<br>
&gt;<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt; From: Ming Chao &lt;<a href="mailto:mingchao2005@gmail.com">mingchao2005@gmail.com</a>&gt;<br>
&gt; Date: Tue, Oct 28, 2008 at 11:15 AM<br>
&gt; Subject: deformation field<br>
&gt; To: Insight Users &lt;<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;<br>
&gt;<br>
&gt;<br>
&gt; Hi<br>
&gt; I have a new problem with generating a deformation field and reading in the<br>
&gt; same field. I did an experiment. Use BSpline model to generate a deformation<br>
&gt; field. The displacements of the grid points are assigned values from random<br>
&gt; numbers. The generation of the deformable deformation field is fine.<br>
&gt; However, when I tried to read in the field with an deformationFieldReader,<br>
&gt; it takes forever to read in the generated field...<br>
&gt;<br>
&gt; I am using ITK 3.8.0 and VTK <a href="http://5.2.0." target="_blank">5.2.0.</a> The compiler is Visual Studio 7 .Net.<br>
&gt; The same code was used with Visual Studio 6 and earlier version of ITK and<br>
&gt; VTK. It was fine at the time.<br>
&gt;<br>
&gt; What is wrong here?<br>
&gt;<br>
&gt; Thanks,<br>
</div></div>&gt; -------------- next part --------------<br>
&gt; An HTML attachment was scrubbed...<br>
&gt; URL: &lt;<a href="http://www.itk.org/pipermail/insight-users/attachments/20081103/62050c58/attachment-0001.htm" target="_blank">http://www.itk.org/pipermail/insight-users/attachments/20081103/62050c58/attachment-0001.htm</a>&gt;<br>

&gt;<br>
&gt; ------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Insight-users mailing list<br>
&gt; <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
&gt;<br>
&gt; End of Insight-users Digest, Vol 55, Issue 4<br>
&gt; ********************************************<br>
<br>
</blockquote></div><br></div>