<div dir="ltr">Hi François<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jan 22, 2014 at 3:31 AM, francois rousseau <span dir="ltr"><<a href="mailto:rousseau@unistra.fr" target="_blank">rousseau@unistra.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word">Hi there,<div><br></div>
<div><div>I’m trying to check itkDisplacementFieldJacobianDeterminantFilter for affine transform and I get weird results.</div><div><br></div><div>Basically, I’ve created a simple affine transform with a scale factor in x dimension :</div>
<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">#Insight Transform File V1.0</div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">
#Transform 0</div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">Transform: MatrixOffsetTransformBase_double_3_3</div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">
Parameters: 1.5 0 0 0 1 0 0 0 1 0 0 0 </div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">FixedParameters: 22.6774 -12.4914 6.04305</div></div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">
<br></div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">I’ve converted this affine file to a deformation field using ComposeMultiTransform (from ANTS). The field is correct so far.</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">Then, I computed the jacobian of the field using itkDisplacementFieldJacobianDeterminantFilter.</div>
<div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">Jacobian is constant and equal to 1.</div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">
<br></div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">I would have expected 1.5 or 2/3.</div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">
<br></div><div style="margin:0px;font-size:11px;font-family:Menlo;background-color:rgb(253,255,255)">Am I doing something wrong?</div></div><div><br></div><div><br></div></div></blockquote><div><br></div><div><br></div><div>
Your intuition seems to be correct here.</div><div>It seems reasonable to expected the Jacobian to different from 1.0</div><div><br></div><div>Would you mind sharing your code ?</div><div><br></div><div>In that way we could give it a quick try at debugging,</div>
<div>and getting a better sense of what is happening.</div><div><br></div><div> Thanks</div><div><br></div><div> Luis</div><div><br></div><div> </div></div></div></div>