Home > functions > gui > bm_editor > bm_fileio > bm_fileio_read_curry_file.m

bm_fileio_read_curry_file

PURPOSE ^

read curry file.

SYNOPSIS ^

function [V_cell, F_cell, xx_cell, model_name_cell, conduct_cell] =bm_fileio_read_curry_file(file_name, analyze_info)

DESCRIPTION ^

 read curry file.
 [USAGE]
    [V_cell, F_cell, xx_cell] = ...
                 bm_fileio_read_curry_file(<file_name>, <analyze_info>);
 [IN]
       file_name : full path head file name(.head.mat)
    analyze_info : analyze information
 [OUT]
             V_cell : cell array of vertex
             F_cell : cell array of face
            xx_cell : cell array of normal vector
    model_name_cell : cell array of model name
       conduct_cell : cell array of conductivity value

 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_cell, F_cell, xx_cell, model_name_cell, conduct_cell] = ...
0002                 bm_fileio_read_curry_file(file_name, analyze_info)
0003 % read curry file.
0004 % [USAGE]
0005 %    [V_cell, F_cell, xx_cell] = ...
0006 %                 bm_fileio_read_curry_file(<file_name>, <analyze_info>);
0007 % [IN]
0008 %       file_name : full path head file name(.head.mat)
0009 %    analyze_info : analyze information
0010 % [OUT]
0011 %             V_cell : cell array of vertex
0012 %             F_cell : cell array of face
0013 %            xx_cell : cell array of normal vector
0014 %    model_name_cell : cell array of model name
0015 %       conduct_cell : cell array of conductivity value
0016 %
0017 % Copyright (C) 2011, ATR All Rights Reserved.
0018 % License : New BSD License(see VBMEG_LICENSE.txt)
0019 
0020 %
0021 % --- Previous check
0022 %
0023 if ~exist('file_name', 'var')
0024     error('file_name is a required parameter.');
0025 end
0026 if ~exist('analyze_info', 'var')
0027     error('analyze_info is a required parameter.');
0028 end
0029 if exist(file_name, 'file') ~= 2
0030     error(['specified head file does not exist : ' file_name]);
0031 end
0032 
0033 %
0034 % --- Main Procedure
0035 %
0036 const = define_bm_edit_app;
0037 
0038 V_cell = cell(0);
0039 F_cell = cell(0);
0040 xx_cell = cell(0);
0041 model_name_cell = cell(0);
0042 conduct_cell = cell(0);
0043 
0044 analyze_file = vb_analyze_info_get_file_prefix(analyze_info);
0045 
0046 [F_cell{1}, V_cell{1}, xx_cell{1}] = ...
0047                         vb_read_curry_surface(file_name, analyze_file);
0048 
0049 model_name_cell{1} = 'brain model1';
0050 conduct_cell{1} = const.DEFAULT_CONDUCTIVITY;

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