rii-mango / NIFTI-Reader-JS

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

How to change the Orientation of Nifti Image and show it to canvas #42

Open ai-watcher opened 3 months ago

ai-watcher commented 3 months ago

I load the nifti-1 file using nifti-reader-js and get the header of the nifti. Now i am trying to change the orientation of the image like RAS to LAS or LPS and show it to canvas. How to do it after reading the file header?

hanayik commented 3 months ago

@ai-watcher I would recommend looking into Niivue for rendering nifti images. Niivue uses nifti-reader-js under the hood. However, images are always displayed in the Niivue canvas using RAS for consistency across all the applications that the Niivue library is used in.