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. </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"><<a href="mailto:vidyaraj@vt.edu">vidyaraj@vt.edu</a>></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>
> Message: 2<br>
> Date: Mon, 3 Nov 2008 09:23:28 -0600<br>
<div class="Ih2E3d">> From: "Ming Chao" <<a href="mailto:mingchao2005@gmail.com">mingchao2005@gmail.com</a>><br>
</div>> Subject: [Insight-users] Fwd: deformation field<br>
> To: "Insight Users" <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>>, "Luis Ibanez"<br>
> <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>><br>
> Message-ID:<br>
> <<a href="mailto:c45aaa1c0811030723y39885c1dxfd794da1c36a09a6@mail.gmail.com">c45aaa1c0811030723y39885c1dxfd794da1c36a09a6@mail.gmail.com</a>><br>
> Content-Type: text/plain; charset="iso-8859-1"<br>
<div><div></div><div class="Wj3C7c">><br>
> Last week, I posted this problem when using deformation in ITK. Nobody<br>
> looked into the problem. Luis, could you please help?<br>
> Thanks very much,<br>
> Ming<br>
><br>
><br>
> ---------- Forwarded message ----------<br>
> From: Ming Chao <<a href="mailto:mingchao2005@gmail.com">mingchao2005@gmail.com</a>><br>
> Date: Tue, Oct 28, 2008 at 11:15 AM<br>
> Subject: deformation field<br>
> To: Insight Users <<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>><br>
><br>
><br>
> Hi<br>
> I have a new problem with generating a deformation field and reading in the<br>
> same field. I did an experiment. Use BSpline model to generate a deformation<br>
> field. The displacements of the grid points are assigned values from random<br>
> numbers. The generation of the deformable deformation field is fine.<br>
> However, when I tried to read in the field with an deformationFieldReader,<br>
> it takes forever to read in the generated field...<br>
><br>
> 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>
> The same code was used with Visual Studio 6 and earlier version of ITK and<br>
> VTK. It was fine at the time.<br>
><br>
> What is wrong here?<br>
><br>
> Thanks,<br>
</div></div>> -------------- next part --------------<br>
> An HTML attachment was scrubbed...<br>
> URL: <<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>><br>
><br>
> ------------------------------<br>
><br>
> _______________________________________________<br>
> Insight-users mailing list<br>
> <a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
> End of Insight-users Digest, Vol 55, Issue 4<br>
> ********************************************<br>
<br>
</blockquote></div><br></div>