Vivien and R<span style>ômulo,</span><div><font face="Arial"><br></font></div><div><font face="Arial">Thanks for the suggestion.</font></div><div><font face="Arial">As I tried it in vv (open the fixed3.png and overlay --> add deformation field to current image), I got the following error at vtkOutputWindow:</font></div>
<div><font face="Arial">"ERROR: in c:\work\vtk\common\vtkDataArrayTemplate.txx line 317 ...</font></div><div><font face="Arial">vtkFloatArray (05D7D320): Unable to allocate 100664289 elements of ..." </font></div>
<div><font face="Arial">and then the application stopped working (not responding).</font></div><div><font face="Arial"><br></font></div><div><font face="Arial">Did I miss something here?</font></div><div><font face="Arial"><br>
</font></div><div><font face="Arial">Best,</font></div><div><font face="Arial">Ryo<br><br></font></div><div><br><div class="gmail_quote">On 1 February 2012 17:23, PINHO Romulo <span dir="ltr"><<a href="mailto:romulo.pinho@lyon.unicancer.fr">romulo.pinho@lyon.unicancer.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div dir="ltr">
<div dir="ltr"><font color="#000000" face="Arial">
<div dir="ltr">
<div dir="ltr"><font color="#000000" face="Arial">Hi, Ryo</font></div>
<div dir="ltr"><font color="#000000" face="Arial">Complementing Vivien's reply, make sure that you correctly set your dimensions when declaring you ITK transform. In principle, if your inputs are 2D images, your transform dimension should also be 2D</font></div>
<div dir="ltr"><font face="Arial"></font> </div>
<div dir="ltr"><span style="text-indent:0px;letter-spacing:normal;font:12px 'Lucida Grande',Verdana,Geneva,Arial,sans-serif;text-transform:none;white-space:normal;display:inline!important;float:none;word-spacing:0px"><span> </span>itk::BSplineDeformableTransform< TScalarType, 2, VSplineOrder ></span></div>
<div dir="ltr"><span style="text-indent:0px;letter-spacing:normal;font:12px 'Lucida Grande',Verdana,Geneva,Arial,sans-serif;text-transform:none;white-space:normal;display:inline!important;float:none;word-spacing:0px"></span> </div>
<div dir="ltr"><span style="text-indent:0px;letter-spacing:normal;font:12px 'Lucida Grande',Verdana,Geneva,Arial,sans-serif;text-transform:none;white-space:normal;display:inline!important;float:none;word-spacing:0px"></span>Kind regards,</div>
<div dir="ltr">Rômulo</div></div></font><font color="#000000" face="Arial"></font></div></div></div>
<div dir="ltr"><pre>-----
ps. my e-mail address has changed (see below)!
Rômulo PINHO
Post-doc Research Engineer
Centre Léon Bérard
28, rue Laennec 69373
Lyon, France
<a href="tel:%2B33%20%280%294%2078%2078%2051%2050" value="+33478785150" target="_blank">+33 (0)4 78 78 51 50</a>
<a href="mailto:romulo.pinho@lyon.unicancer.fr" target="_blank">romulo.pinho@lyon.unicancer.fr</a>
<a href="http://www.creatis.insa-lyon.fr/rio/RomuloPinho" target="_blank">http://www.creatis.insa-lyon.fr/rio/RomuloPinho</a></pre></div>
<div dir="ltr"><br>
<hr>
<font face="Tahoma"><b>From:</b> <a href="mailto:vv-bounces@creatis.insa-lyon.fr" target="_blank">vv-bounces@creatis.insa-lyon.fr</a> on behalf of Vivien Delmon<br><b>Sent:</b> Wed 2/1/2012 09:15<br><b>To:</b> <a href="mailto:vv@creatis.insa-lyon.fr" target="_blank">vv@creatis.insa-lyon.fr</a><br>
<b>Subject:</b> Re: [Vv] Deformation field error<br></font><br></div><div class="HOEnZb"><div class="h5">
<div>
<p><font>On 02/01/2012 06:28 AM, Ryosuke Matsuo wrote:<br>> Hi all,<br>><br>> I just used vv for a simple image registration.<br>> Fixed image contains a white circle at the center and moving image<br>> contains an ellipse.<br>
> I registered the image using ITK (BSplinetransformation) and saved the<br>> deformation field (.mhd).<br>> When I tried to load the deformation field in vv (add deformation field<br>> to current image), it said "Cannot import the vector field for this<br>
> image. Vector field dimension cannot be greater then (than?) reference<br>> image!"<br>><br>> How should I load the deformation field into the image using vv?<br>><br>> I attached the fixed, moving and deformation field files, just in case.<br>
><br>> Thanks in advance,<br>> Ryo<br><br>Hi Ryosuke,<br><br>The problem comes from the deformation field which is in 3D where your<br>images are in 2D.<br><br>If you want to open it anyway you can just modify the mhd file which is<br>
just a text file describing the data. I attached my modified deform3.mhd.<br><br>vv fixed3.png --overlay moving3.png --vf deform3.mhd<br><br>After modification vv can open it on my computer.<br><br>Kind regards,<br><br>--<br>
Vivien Delmon<br>PhD student at CREATIS, Lyon<br>Supported by ANRT and ELEKTA<br><a href="http://www.creatis.insa-lyon.fr/rio" target="_blank">http://www.creatis.insa-lyon.fr/rio</a><br><br>A: Because it messes up the order in which people normally read text.<br>
Q: Why is top-posting such a bad thing?<br>A: Top-posting.<br>Q: What is the most annoying thing in e-mail?<br></font></p></div></div></div><br>_______________________________________________<br>
vv mailing list<br>
<a href="mailto:vv@creatis.insa-lyon.fr">vv@creatis.insa-lyon.fr</a><br>
<a href="http://www.creatis.insa-lyon.fr/mailman/listinfo/vv" target="_blank">http://www.creatis.insa-lyon.fr/mailman/listinfo/vv</a><br>
<br></blockquote></div><br></div>