On Wed, May 13, 2009 at 2:52 PM, Matthew Brett <span dir="ltr">&lt;<a href="mailto:matthew.brett@gmail.com">matthew.brett@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&gt; or 3. Can it also read other image formats:<br><div class="im">
&gt;<br>
&gt; (data4,meta4) = somepackage.load(&#39;help.tif&#39;) # common img formats<br>
<br>
</div>No...  I suppose it could, via PIL or something, but that would only<br>
make sense if the TIFF was a volume.<br>
</blockquote><div><br>Thanks Matthew. If this were to make it&#39;s way to scipy, I think it
would be good for it to read stacked tiff&#39;s. That&#39;s the format that&#39;s
used by molecular biologists and neuroscientists to store confocal
microscopy and other imaging data.<br> 
<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
The idea is - post sprint - that the image object should insist on at<br>
least 3 dimensions...<br>
</blockquote><div><br>A 2D image is a volume with the 3rd dimension set to 1. So if I extracted slices from a volume would I have to do:<br><br>someotherpackage.save(my2Dslice,&#39;canIbea3dvol.dcm&#39;)<br><br>instead of <br>
<br>medvol.save(my2Dslice,&#39;iama3dvol.dcm&#39;) <br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
So, yes, I think it&#39;s medical volume.</blockquote><div><br>I think my general point is that if this was purely a neuroimaging thing, it should remain within NiPy. However, if it is more generally applicable to medical images, then it should seriously consider a framework in which it can support other common volume-like formats.<br>
<br></div></div>Cheers,<br><br>Satra<br>