<HTML dir=ltr><HEAD><TITLE>Re: [Insight-users] still unsuccessful in dewarping a fluo image</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText84419 dir=ltr>
<DIV dir=ltr><FONT face=Arial>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">I am not sure what you mean with "aspect". I try to dewarp a 2D fluoroscopic image using KernelBase spline deformation and two sets of landmarks. My code is exactly what is shown in the LandmarkWarping2 example.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">I manually defined a set of source and target landmarks. Than I performed the deformation along with the computation of a 2D deformation field. The dewarped image I get is better than the original but far from what I would need.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">What seems strange to me is the fact that the dewarped image looks enlarged even thought the deformation field is oriented to the centre of the original target image.<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">Fluo image: http://www.bilder-upload.eu/show.php?file=lOAULD07LeTb0fZ.jpg <o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">Grid: http://www.bilder-upload.eu/show.php?file=ON5DUNAnbRZaQ9w.jpg<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">Dewarped fluo image: http://www.bilder-upload.eu/show.php?file=F5KaxAcLLwbY1og.JPG<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">Source landmarks http://www.bilder-upload.eu/show.php?file=wcG9VZa0BapBS1k.jpg<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="COLOR: black; FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">Manual deformation field within MeVisLab http://www.bilder-upload.eu/show.php?file=iBrGaequ69018Re.jpg<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">Deformation field within ParaView: http://www.bilder-upload.eu/show.php?file=xeMgaegspa3qQpJ.jpg<o:p></o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB"><o:p> </o:p></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-GB style="FONT-FAMILY: Tahoma; mso-ansi-language: EN-GB">Many thanks – Peter.<o:p></o:p></SPAN></P></FONT><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> Luis Ibanez [mailto:luis.ibanez@kitware.com]<BR><B>Gesendet:</B> Mo 14.04.2008 22:35<BR><B>An:</B> Boettcher, Dr. Peter<BR><B>Cc:</B> insight-users @ itk. org<BR><B>Betreff:</B> Re: [Insight-users] still unsuccessful in dewarping a fluo image<BR></FONT><BR></DIV></DIV>
<DIV><BR>
<P><FONT size=2>Hi Peter,<BR><BR>What is the aspect of the deformed image that doesn't<BR>match to what you were expecting ?<BR><BR><BR> Please give us more details,<BR><BR><BR> Thanks<BR><BR><BR> Luis<BR><BR><BR><BR>------------------------------<BR>Boettcher, Dr. Peter wrote:<BR>> Thank you Karthik for your help!<BR>><BR>> <BR>><BR>> <BR>><BR>> I managed to get my deformation field into ParaView<BR>> (<A href="http://www.bilder-upload.eu/show.php?file=aq49RZ0Lv1xIMh1.jpg">http://www.bilder-upload.eu/show.php?file=aq49RZ0Lv1xIMh1.jpg</A>). It<BR>> looks quite good, but the deformed image is still not what I expected<BR>> (<A href="http://www.bilder-upload.eu/show.php?file=F5KaxAcLLwbY1og.JPG">http://www.bilder-upload.eu/show.php?file=F5KaxAcLLwbY1og.JPG</A>).<BR>><BR>> <BR>><BR>> <BR>><BR>> Is there anything I could try to find out where the problem is?<BR>><BR>> <BR>><BR>> Regards, Peter.<BR>><BR>> <BR>> ------------------------------------<BR>> Peter Böttcher, Dr med vet, DipECVS<BR>> European Veterinary Specialist in Surgery<BR>> Fachtierarzt für Kleintierchirurgie<BR>> Klinik für Kleintiere<BR>> Universität Leipzig<BR>> An den Tierkliniken 23<BR>> D-04103 Leipzig (Germany)<BR>> Tel: +49-341-9738700<BR>> Fax: +49-341-9738799<BR>> email: boettcher@kleintierklinik.uni-leipzig.de<BR>> <<A href="mailto:boettcher@kleintierklinik.uni-leipzig.de">mailto:boettcher@kleintierklinik.uni-leipzig.de</A>><BR>><BR>><BR>> ------------------------------------------------------------------------<BR>><BR>> _______________________________________________<BR>> Insight-users mailing list<BR>> Insight-users@itk.org<BR>> <A href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR></FONT></P></DIV></BODY></HTML>