Change Analyze voxel coord to Analyze mm coord. Vana = vb_analyze_to_analyze_mm(Vana,Vdim,Vsize) --- Input Vana : NV x 3 Analyze Right-hand voxel coordinate Vdim : Voxel dimension of Analyze image Vsize : Voxel size of Analyze image --- Output Vana : NV x 3 Analyze Right-hand [mm] coordinate --- Analyze mm coordinate [Right-hand coordinate] X: Left(1) -> Right(191) Y: Back(1) -> Front(256) Z: Bottom(1) -> Top(256) written by M. Sato 2007-3-14 Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function Vana = vb_analyze_to_analyze_mm(Vana,Vdim,Vsize) 0002 % Change Analyze voxel coord to Analyze mm coord. 0003 % Vana = vb_analyze_to_analyze_mm(Vana,Vdim,Vsize) 0004 % --- Input 0005 % Vana : NV x 3 Analyze Right-hand voxel coordinate 0006 % Vdim : Voxel dimension of Analyze image 0007 % Vsize : Voxel size of Analyze image 0008 % --- Output 0009 % Vana : NV x 3 Analyze Right-hand [mm] coordinate 0010 % 0011 % --- Analyze mm coordinate 0012 % 0013 % [Right-hand coordinate] 0014 % X: Left(1) -> Right(191) 0015 % Y: Back(1) -> Front(256) 0016 % Z: Bottom(1) -> Top(256) 0017 % 0018 % written by M. Sato 2007-3-14 0019 % 0020 % Copyright (C) 2011, ATR All Rights Reserved. 0021 % License : New BSD License(see VBMEG_LICENSE.txt) 0022 0023 % Change Analyze voxel coord to Analyze mm coord. 0024 Vana(:,1) = Vana(:,1) * Vsize(1); 0025 Vana(:,2) = Vana(:,2) * Vsize(2); 0026 Vana(:,3) = Vana(:,3) * Vsize(3); 0027