rii-mango / NIFTI-Reader-JS

A JavaScript NIfTI file format reader.
MIT License
137 stars 30 forks source link

Handle Method 0 #24

Closed neurolabusc closed 1 year ago

neurolabusc commented 1 year ago

This PR fixes an unintended consequence of PR15 which added NIfTI method 1 to the existing method 2. The specification describes Method 0 for the case where neither the sform or qform is specified. Here is an example of such a dataset. One could argue that an image which does not specify either a qform or sform is necessarily ambiguous with regards to the direction of the dimensions and the origin, so only the voxel size is specified.