<HTML><BODY>
<div>Hi <SPAN contentEditable=false style="DISPLAY: inline-block"></SPAN>Karthik,</div>


<div>&nbsp;</div>


<div>Thanks a lot.</div>


<div>&nbsp;</div>


<div>The 6 gradient images I meant&nbsp;were actually the Dxx, Dyy, Dzz, Dxy, Dxz, Dyz from D matrix.</div>


<div>I just don't know how itk::DiffusionTensor3D manage to store them and I cannot find the documentation that discribe it explicitly. Now I found it in DiffusionTensor3D .h. </div>


<div>&nbsp;</div>


<div><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// Note that the indices are related to the fact </div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// that we store only the upper-right triangle of</div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// the matrix. Like</div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// </div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// | 0 1 2 |</div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// | X 3 4 |</div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// | X X 5 |</div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// </div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// The trace is therefore the sum of the components</div>
</FONT><FONT size=2>

<div></FONT><FONT color=#008000 size=2>// M[0], M[3] and M[5].</FONT></div>


<div><FONT color=#008000 size=2></FONT>&nbsp;</div>


<div><FONT color=#008000>Cheers</FONT></div>


<div><FONT color=#008000 size=2></FONT>&nbsp;</div>


<div><FONT color=#008000 size=2>Best</FONT></div>


<div><FONT color=#008000 size=2>John</div>
</FONT></div>

<div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
<a href="http://pr.atwola.com/promoclk/100122638x1081283466x1074645346/aol?redir=http://email.aol.co.uk" target="_blank"><b>Check out the new free AOL Email</b></a> -- 2GB of storage and industry-leading spam and email virus protection.<br />
</div>

</BODY></HTML>