2017/08/021 [spm] real world coordinate 와 voxel coordinate 변환 FORMAT V = spm_vol(P) V.mat - a 4x4 affine transformation matrix mapping from voxel coordinates to real world coordinates. mat은 복셀스페이스 (복셀스페이스, x로 몇복셀,y로 몇 복셀 ..) -> realworld (mm 단위,, 실제 머리의 크기와 관련된 현실사이즈) cent = AMAP(i).centroid; // cent가 mm단위의 real world 좌표일때. vx = double(inv(aalv.mat)*[cent'; 1]); // aalv.mat의 inv를 곱해주면.. realworld->복셀좌표. vx가 cent로 갈때는 aalv.mat*vx 해주면 cent가 나온다. 2017. 8. 2. 이전 1 다음