<div dir="ltr"><div><div><div><div><div><div>Hi Arnaud,<br><br></div>The reason this tends to happen when trying to use ROIs created with MRtrix in another software package, is the fact that the latter does not support the bitwise datatype that MRtrix creates its ROIs with.<br>
</div>The solution is easy: just convert your ROIs to another datatype using mrconvert with the &quot;-datatype&quot; option (see <a href="http://www.brain.org.au/software/mrtrix/commands/mrconvert.html">http://www.brain.org.au/software/mrtrix/commands/mrconvert.html</a> ).  The available datatypes and the accompanying specifiers that should be used with the &quot;-datatype&quot; option, can be found at <a href="http://www.brain.org.au/software/mrtrix/general/formats.html">http://www.brain.org.au/software/mrtrix/general/formats.html</a> .<br>
</div>You could run, e.g.:<br><br></div>mrconvert -datatype Int8 myROIcreatedwithMRtrix.mif myROItobeusedwithFSL.nii<br><br></div>Hope that&#39;s somewhat clear and solves your problem!<br><br></div>Cheers,<br>Thijs<br></div>
<div class="gmail_extra"><br clear="all"><div><div dir="ltr"><span style="color:rgb(68,68,68)"><b><font size="4">Thijs Dhollander</font><br><font><a href="mailto:thijs.dhollander@gmail.com" target="_blank">thijs.dhollander@gmail.com</a><br>
Tel. +32 475 36 44 27</font></b><br><font size="1">Medical Image Computing (MIC), ESAT-PSI, Department of Electrical Engineering, KU Leuven</font></span></div></div>
<br><br><div class="gmail_quote">On Fri, Sep 20, 2013 at 9:33 PM, Arnaud Boré <span dir="ltr">&lt;<a href="mailto:arnaud.bore@gmail.com" target="_blank">arnaud.bore@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>Dear Mrtrix experts,</div><div><br></div><div>I&#39;ve got an error when I create and save a ROI and then try to load it in FSL fslview (4.0.1) .</div><div><br></div><div>This is the error message:</div>

<div>nifti_convert_nhdr2nim: bad datatype</div><div><br></div><div>I&#39;ve got the same kind of problem when I try to load it with freeview </div><div>unsupported datatype 1 with scl_slope !=0</div><div><br></div><div>I&#39;m using mrview 0.2.12 (revision 393)</div>

<div><br></div><div>I tried the patch here : <a href="http://www.nitrc.org/pipermail/mrtrix-discussion/2012-April/000398.html" target="_blank">http://www.nitrc.org/pipermail/mrtrix-discussion/2012-April/000398.html</a> but didn&#39;t fix anything or maybe I&#39;ve done it wrong</div>

<div><br></div><div>Thank you for your help</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Arnaud</div><div><br></div>-- <br>Arnaud BORE<br>Research assistant <br>Cellulaire : (001) 514-647-8649<br><br>

</font></span></div>
<br>_______________________________________________<br>
Mrtrix-discussion mailing list<br>
<a href="mailto:Mrtrix-discussion@www.nitrc.org">Mrtrix-discussion@www.nitrc.org</a><br>
<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a><br>
<br></blockquote></div><br></div>