Navigation Menu

Skip to content

Commit

Permalink
Bugfix: normalize tpm before passing segmentation to brain2mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Feb 22, 2020
1 parent 1d22b10 commit b57524d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions toolbox/process/functions/process_generate_fem.m
Expand Up @@ -512,6 +512,8 @@
seg.skull = sTpm.Cube;
sTpm = in_mri_nii(bst_fullfile(tempDir, ['c5' subjid 'T1.nii']));
seg.scalp = sTpm.Cube;
% normalize SPM TPM data to [0,1]
seg=structfun(@(x) double(x)*(1./255), seg,'UniformOutput',false);

% ===== CALL BRAIN2MESH =====
bst_progress('text', 'Meshing with Brain2Mesh...');
Expand Down

0 comments on commit b57524d

Please sign in to comment.