aces / brainbrowser

Web-based visualization tools for neurological data.
https://brainbrowser.cbrain.mcgill.ca/
GNU Affero General Public License v3.0
351 stars 122 forks source link

Support .mgh files #280

Closed rdvincent closed 8 years ago

rdvincent commented 8 years ago

These commits add volume viewer support for FreeSurfer volumetric data (.mgh), and adds the necessary code and files to incorporate this into the volume viewer demo.

Compressed .mgh files, or .mgz, are just MGH files that have been run through zlib/gzip. So they can be loaded by simply renaming them to .mgh.gz instead of .mgz. Even better would be figuring out how to configure the web server to set the MIME type correctly to force the automatic decoding of the extension .mgz, but I don't think that can be done directly in this code.

This commit also adds display of the voxel and world coordinates in the overlay image in the demo.