Thanks Phil. It solved the problem. <div><br></div><div>Zhuang<br><br><div class="gmail_quote">On Mon, Aug 20, 2012 at 7:16 AM, Philip A Cook <span dir="ltr">&lt;<a href="mailto:cookpa@mail.med.upenn.edu" target="_blank">cookpa@mail.med.upenn.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You should set the memory allocation to Camino to a suitably large (but realistic) number. For example<br>
<br>
CAMINO_HEAP_SIZE=1800<br>
<br>
if you have 2 Gb of RAM, will allow up to 1800 Mb of memory use.<br>
<div><div class="h5"><br>
<br>
On Aug 19, 2012, at 9:43 PM, Zhuang Song wrote:<br>
<br>
&gt; Hello.<br>
&gt;<br>
&gt; When I ran image2voxel on a DTI image with 256 directions, I got an Out of Memory Error:<br>
&gt;<br>
&gt; image2voxel -4dimage 4Ddwi_b1000.nii.gz -outputfile dwi.Bfloat<br>
&gt; Exception in thread &quot;main&quot; java.lang.OutOfMemoryError: Java heap space<br>
&gt;       at data.ScannerOrderDataSource.init(ScannerOrderDataSource.java:169)<br>
&gt;       at data.ScannerOrderDataSource.&lt;init&gt;(ScannerOrderDataSource.java:134)<br>
&gt;       at data.ScannerOrderScaledDataSource.&lt;init&gt;(ScannerOrderScaledDataSource.java:52)<br>
&gt;       at imaging.Nifti1Dataset.getImageDataSource(Nifti1Dataset.java:2298)<br>
&gt;       at apps.ImageToVoxel.execute(ImageToVoxel.java:105)<br>
&gt;       at apps.EntryPoint.main(EntryPoint.java:278)<br>
&gt;<br>
&gt; The image size is 128x128x28x257, and data type integer. What would be the problem?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Zhuang<br>
</div></div>&gt; _______________________________________________<br>
&gt; Camino-users mailing list<br>
&gt; <a href="mailto:Camino-users@www.nitrc.org">Camino-users@www.nitrc.org</a><br>
&gt; <a href="http://www.nitrc.org/mailman/listinfo/camino-users" target="_blank">http://www.nitrc.org/mailman/listinfo/camino-users</a><br>
<br>
</blockquote></div><br></div>