<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
        LINE-HEIGHT: 1.5; FONT-FAMILY: ΢ÈíÑźÚ; COLOR: #000000; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16455"></HEAD>
<BODY style="MARGIN: 10px">
<DIV>
<DIV><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">Hi,</SPAN></DIV>
<DIV><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px"></SPAN> </DIV>
<DIV><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">I
have a question about the gradient direction table used in Mrtrix. The gradient
direction table achieved from the DICOM images with dcm2nii is different from
the table achieved with the command 'mrinfo DICOMDIR -grad encoding.b'. I
checked the source code of Mrtrix and found the following codes '</SPAN></DIV>
<DIV><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px"></SPAN><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">if(rotate_DW_scheme)</SPAN></DIV>
<DIV
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; FONT: medium Tahoma; WHITE-SPACE: normal; WORD-SPACING: 0px">
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt">{</DIV>
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt">G(n,0) =
image_transform(0,0) * d[0] + image_transform(0,1) * d[1] - image_transform(0,2)
* d[2];</DIV>
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt">G(n,1) =
image_transform(1,0) * d[0] + image_transform(1,1) * d[1] - image_transform(1,2)
* d[2];</DIV>
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt">G(n,2) =
image_transform(2,0) * d[0] + image_transform(2,1) * d[1] - image_transform(2,2)
* d[2];</DIV></DIV>
<DIV><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">}</SPAN><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">'
in image.cpp.</SPAN></DIV>
<DIV><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">I
transformed the original gradient table with similar code in Matlab, but the
result is not equal to the table achieved with mrinfo. So I want to know the
procedure of transforming the original gradients to the gradients achieved with
mrinfo. And why is it '</SPAN><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">G(n,0)
= image_transform(0,0) * d[0] + image_transform(0,1) * d[1] -
image_transform(0,2) * d[2];</SPAN><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: 12pt Times New Roman; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px">'
rather than '</SPAN><SPAN
style="TEXT-TRANSFORM: none; TEXT-INDENT: 0px; LETTER-SPACING: normal; DISPLAY: inline !important; FONT: medium Tahoma; WHITE-SPACE: normal; FLOAT: none; WORD-SPACING: 0px"><SPAN
style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt">G(n,0) =
image_transform(0,0) * d[0] + image_transform(0,1) * d[1] + image_transform(0,2)
* d[2];' ?</SPAN></SPAN></DIV></DIV>
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt">Thanks.</DIV>
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt"> </DIV>
<DIV style="FONT-FAMILY: Times New Roman; FONT-SIZE: 12pt">Sangma Xie</DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>
<DIV><SPAN style="FONT-FAMILY: ËÎÌå; COLOR: #000000; FONT-SIZE: 10.5pt"><SPAN
style="FONT-FAMILY: Times New Roman"><SPAN style="FONT-SIZE: 10.5pt"><SPAN
style="FONT-SIZE: 10.5pt">Sangma Xie , Master </SPAN> </SPAN>
<DIV><SPAN style="FONT-FAMILY: Times New Roman">Brainnetome Center
<DIV style="FONT-FAMILY: Times New Roman">National Laboratory of Pattern
Recognition (NLPR)</DIV>Institute of Automation, Chinese Academy of Sciences
(CASIA)<BR>95 Zhong Guan Cun East Road, Hai Dian District, Beijing 100190,
P.R.China</SPAN></SPAN><BR><BR></DIV></SPAN></DIV></SPAN></DIV></BODY></HTML>