rii-mango / NIFTI-Reader-JS

A JavaScript NIfTI file format reader.
MIT License
136 stars 25 forks source link

Can not parse dataset #3

Closed NicolasRannou closed 8 years ago

NicolasRannou commented 8 years ago

Hi, It seems the following dataset is not being parsed properly:

The header looks fine but buffer returned is empty.

https://drive.google.com/file/d/0B2-PspfnvPNgTmxJN3h5cTVMb1U/view?usp=sharing

rii-mango commented 8 years ago

Thanks for reporting this. I think you may be using an older version in which nifti.readImage() would not correct the time dimension to 1 if it was 0 in the header. So if it is 0, when it calculates the size of the image, it comes out to 0.

Try using the latest build and let me know if that doesn't fix it.

rii-mango commented 8 years ago

Another possibility... the slope is 0 in that image. Be sure you aren't multiplying that in or else everything will be 0 as well.

NicolasRannou commented 8 years ago

Thanks - trying it and will let you know. Another (smaller) dataset from same people which doesn't work: https://drive.google.com/open?id=0B2-PspfnvPNgS3BrTWU0NHhNRlE FYI papaya couldn't display this image.

NicolasRannou commented 8 years ago

Thanks update to 0.5.3 worked.

@rii-mango You might have update it in Papaya viewer.

screen shot 2016-04-13 at 9 02 36 am