<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css"></style>
</head>
<body ocsi="0" fpstyle="1" bgcolor="#FFFFFF">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><style>
<!--
/* Font Definitions */
@font-face
{font-family:Cambria;
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 0 0 0 1 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0cm;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Cambria;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
mso-header-margin:35.4pt;
mso-footer-margin:35.4pt;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<p class="MsoNormal">Hi,<br>
</p>
<p class="MsoNormal">I try to reslice MRI from [157 204 203] to [256 256 256]</p>
<p class="MsoNormal">I do:<br>
</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black">cfg<span style="mso-spacerun:
yes">
</span>= [];</span><span style="font-family:Courier;mso-bidi-font-family:"Times New Roman""></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black">cfg.dim = [256 256 256];</span><span style="font-family:Courier;mso-bidi-font-family:"Times New Roman""></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Courier;
mso-bidi-font-family:Courier;color:black">mri_resl = ft_volumereslice(cfg, mri);</span><span style="font-family:Courier;mso-bidi-font-family:"Times New Roman""></span></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">but I get the error (see below)</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I use latest FT version with </p>
<p class="MsoNormal">Mac OS 10.6.8 and Matlab 7.13.0.564 (R2011b)</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal"><font size="2"><span style="font-size:10pt;">Thanks in advance</span></font></p>
<p class="MsoNormal">Elena</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">*********************</p>
<p class="MsoNormal">the input is volume data with dimensions [157 204 203]</p>
<p class="MsoNormal">reslicing from [157 204 203] to [256 256 256]</p>
<p class="MsoNormal">the input is volume data with dimensions [157 204 203]</p>
<p class="MsoNormal">the input is volume data with dimensions [256 256 256]</p>
<p class="MsoNormal">selecting subvolume of 0.0%</p>
<p class="MsoNormal">reslicing and interpolating anatomy</p>
<p class="MsoNormal">interpolating</p>
<p class="MsoNormal">Attempted to access sel(1); index out of bounds because numel(sel)=0.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Error in ft_sourceinterpolate>my_interpn (line 467)</p>
<p class="MsoNormal"><span style="mso-spacerun: yes"> </span>ft_progress(sel(1)/num, 'interpolating %.1f%%\n', 100*sel(1)/num);</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Error in ft_sourceinterpolate (line 376)</p>
<p class="MsoNormal"><span style="mso-spacerun:
yes"> </span>av( sel) = my_interpn(fv, ax(sel), ay(sel), az(sel),</p>
<p class="MsoNormal"><span style="mso-spacerun:
yes"> </span>cfg.interpmethod, cfg.feedback);</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Error in ft_volumereslice (line 147)</p>
<div style="mso-element:para-border-div;border:none;border-bottom:dotted windowtext 3.0pt;
padding:0cm 0cm 1.0pt 0cm">
<p class="MsoNormal" style="border: medium none; padding: 0cm;">reslice = ft_sourceinterpolate(tmpcfg, mri, reslice);</p>
<p class="MsoNormal" style="border:none;mso-border-bottom-alt:dotted windowtext 3.0pt;
padding:0cm;mso-padding-alt:0cm 0cm 1.0pt 0cm">
<br>
</p>
</div>
<p class="MsoNormal"><b style="mso-bidi-font-weight:normal"> </b></p>
<p class="MsoNormal"><b style="mso-bidi-font-weight:normal"> </b></p>
</div>
</body>
</html>