rii-mango / NIFTI-Reader-JS

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

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

Open ai-watcher opened 3 weeks ago

ai-watcher commented 3 weeks 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 weeks 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.