[Neuroimaging] cannot import the 3d images

Eleftherios Garyfallidis garyfallidis at gmail.com
Wed May 18 17:09:04 EDT 2016


Please have a look at the quick start

http://nipy.org/dipy/examples_built/quick_start.html#example-quick-start
Any Nifti image can be loaded if you know the filepath in the disk

fdwi = /home/username/some_director/dwi.nii.gz
import nibabel as nib
img = nib.load(fdwi)
data = img.get_data()

Keep it up!

On Wed, May 18, 2016 at 2:19 PM Ariel Rokem <arokem at gmail.com> wrote:

> Hi Vivek,
>
> On Wed, May 18, 2016 at 11:07 AM, Vivek Joshi <vivekjoshi1894 at gmail.com>
> wrote:
>
>> Thank you Samuel St-Jean and Ariel Rokem!
>> But the image datasets you mentioned cannot be imported in the PIESNO
>> code. Only stanford_hardi and sherbrooke_3shell are fetched properly.
>> So please suggest a way to run the code without any error.
>> THANK YOU!
>>
>
> You are correct that Dipy itself does not include easy-to-use
> data-fetchers for many of these data-sets (though there are in fact a
> couple more in the dipy.data module:
> http://nipy.org/dipy/reference/dipy.data.html). You should download the
> data files to your computer and use the nibabel library (
> http://nipy.org/nibabel/) to read the data from the files.
>
> Best,
>
> Ariel
>
>
>
>
>> _______________________________________________
>> Neuroimaging mailing list
>> Neuroimaging at python.org
>> https://mail.python.org/mailman/listinfo/neuroimaging
>>
>> _______________________________________________
> Neuroimaging mailing list
> Neuroimaging at python.org
> https://mail.python.org/mailman/listinfo/neuroimaging
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/neuroimaging/attachments/20160518/743dd732/attachment.html>


More information about the Neuroimaging mailing list