Home > functions > common > morphology > vb_trans_vox_to_surf.m

vb_trans_vox_to_surf

PURPOSE ^

transform [mm] coordinate to 3D surface coordinate in [m]

SYNOPSIS ^

function V = vb_trans_vox_to_surf(Vox, Vorgin)

DESCRIPTION ^

 transform [mm] coordinate to 3D surface coordinate in [m]
   V = vb_trans_vox_to_surf(Vox, Vorgin)
 ---Input
 Vox    : voxel coordinate in [mm]
 Vorgin : Origin of voxel coordinate
 --- Output
 V      : 3D surface coordinate in [m]

 Vox = V*1000 - Vorgin
  V  = (Vox + Vorgin)*0.001;

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function    V = vb_trans_vox_to_surf(Vox, Vorgin)
0002 % transform [mm] coordinate to 3D surface coordinate in [m]
0003 %   V = vb_trans_vox_to_surf(Vox, Vorgin)
0004 % ---Input
0005 % Vox    : voxel coordinate in [mm]
0006 % Vorgin : Origin of voxel coordinate
0007 % --- Output
0008 % V      : 3D surface coordinate in [m]
0009 %
0010 % Vox = V*1000 - Vorgin
0011 %  V  = (Vox + Vorgin)*0.001;
0012 %
0013 % Copyright (C) 2011, ATR All Rights Reserved.
0014 % License : New BSD License(see VBMEG_LICENSE.txt)
0015 
0016 V = [Vox(:,1)+Vorgin(1), Vox(:,2)+Vorgin(2), Vox(:,3)+Vorgin(3)];
0017 V = V * 0.001;

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005