Home > functions > gui > bm_editor > bm_processor > bm_processor_surf_smooth_expand.m

bm_processor_surf_smooth_expand

PURPOSE ^

processing by vb_surf_smooth_expand()

SYNOPSIS ^

function [new_brain_data] = bm_processor_surf_smooth_expand(obj, brain_data, parm)

DESCRIPTION ^

 processing by vb_surf_smooth_expand()
 [USAGE]
     [new_brain_data] =
         bm_processor_surf_smooth_expand(<obj>, <brain_data>, <parm>);
 [IN]
           obj : bm_processor object
    brain_data : processing data
          parm : processing parameter
 [OUT]
    new_brain_data : processed data

 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 [new_brain_data] = bm_processor_surf_smooth_expand(obj, brain_data, parm)
0002 % processing by vb_surf_smooth_expand()
0003 % [USAGE]
0004 %     [new_brain_data] =
0005 %         bm_processor_surf_smooth_expand(<obj>, <brain_data>, <parm>);
0006 % [IN]
0007 %           obj : bm_processor object
0008 %    brain_data : processing data
0009 %          parm : processing parameter
0010 % [OUT]
0011 %    new_brain_data : processed data
0012 %
0013 % Copyright (C) 2011, ATR All Rights Reserved.
0014 % License : New BSD License(see VBMEG_LICENSE.txt)
0015 
0016 %
0017 % --- Previous check
0018 %
0019 if ~exist('obj', 'var'), error('obj is a required parameter.'); end
0020 if ~exist('brain_data', 'var')
0021     error('brain_data is a required parameter.');
0022 end
0023 if ~exist('parm', 'var'), error('parm is a required parameter.'); end
0024 
0025 if ~strcmp(brain_data.class_type, 'surf_data')
0026     error('Not surface data was inputted.');
0027 end
0028 if isempty(obj.analyze_info)
0029     error('Analyze file information does not exist.');
0030 end
0031 
0032 %
0033 % --- Main Procedure
0034 %
0035 global vbmeg_inst;
0036 const = vbmeg_inst.const;
0037 
0038 % get processing data
0039 V  = surf_data_get_vertex(brain_data);
0040 F  = surf_data_get_face(brain_data);
0041 xx = surf_data_get_normal_vector(brain_data);
0042 
0043 % calculate dimension
0044 Vdim  = vb_analyze_info_get_voxdim(obj.analyze_info);
0045 Vsize = vb_analyze_info_get_voxsize(obj.analyze_info);
0046 parm.Dim = vb_mask_image_size(Vdim, Vsize, parm.vsize);
0047 
0048 % processing
0049 [V_new, F_new, xx_new] = vb_surf_smooth_expand(V, F, xx, parm);
0050 
0051 % create new data
0052 new_brain_data = surf_data_new(V_new, F_new, xx_new, ...
0053                                 const.COORDINATE_ANALYZE_RIGHT_MM);

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