-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Freesurfer now supports mgz warp file, which follows mgz format with these tags and data: TAG_GCAMORPH_GEOM : gcamorph image (source) geom & gcamorph atlas (target) geom TAG_GCAMORPH_META : data format (int), spacing (int), exp_k (double) TAG_GCAMORPH_LABELS : gcamorph label data TAG_GCAMORPH_AFFINE : gcamorph m_affine matrix The version number in mgz is now intent encoded: version = (intent & 0xff ) << 8) | MGH_VERSION MGH_VERSION = 1 Changes included in this commit: 1. add read/write TAG_GCAMORPH_GEOM and TAG_GCAMORPH_META in Surfa MGHArrayIO class 2. retrieve intent when MGHArrayIO::load(), encode intent in version number when MGHArrayIO:save() 3. mgz warp related information is saved as the following fields in the FramedArray _metadata dict: intent, gcamorph_volgeom_src, gcamorph_volgeom_trg, warpfield_dtfmt, gcamorph_spacing, gcamorph_exp_k
- Loading branch information
Showing
4 changed files
with
137 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters