Home > vbmeg > functions > gui > brain_file_maker > brain_file_maker_new.m

brain_file_maker_new

PURPOSE ^

constructor of brain_file_maker object

SYNOPSIS ^

function [obj] = brain_file_maker_new(proj_root)

DESCRIPTION ^

 constructor of brain_file_maker object
 [USAGE]
    [obj] = brain_file_maker_new([proj_root]);
 [IN]
    proj_root : project root directory(optional)
 [OUT]
    obj : brain_file_maker object

 Author: rhayashi
 Created: 2007-07-13

 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 [obj] = brain_file_maker_new(proj_root)
0002 % constructor of brain_file_maker object
0003 % [USAGE]
0004 %    [obj] = brain_file_maker_new([proj_root]);
0005 % [IN]
0006 %    proj_root : project root directory(optional)
0007 % [OUT]
0008 %    obj : brain_file_maker object
0009 %
0010 % Author: rhayashi
0011 % Created: 2007-07-13
0012 %
0013 % Copyright (C) 2011, ATR All Rights Reserved.
0014 % License : New BSD License(see VBMEG_LICENSE.txt)
0015 
0016 %
0017 % --- Object initialize
0018 %
0019 obj = struct;
0020 obj.class_name = 'brain_file_maker';
0021 
0022 if ~exist('proj_root', 'var')
0023     proj_root = '';
0024 end
0025 obj.proj_root    = proj_root;
0026 
0027 obj.analyze_file = ''; % absolute path
0028 obj.analyze_info = [];
0029 
0030 obj.product_type = 1;  % = 1: subject cortex from std brain
0031                        % = 2: subject smooth cortex from mask file.
0032 
0033 % for Brain Viewer & Smoother settings
0034 obj.brain_dir    = ''; % relative path from proj_root
0035 obj.brain_file   = ''; % relative path from proj_root
0036 obj.act_file     = ''; % relative path from proj_root
0037 obj.area_file    = ''; % relative path from proj_root
0038 obj.job_smooth_cortex_parm = job_smooth_cortex_parm_new;
0039 
0040 % Common settings to make brain files
0041 obj.spm_norm_file    = '';          % absolute path
0042 obj.brain_file_output_dir = '';     % relative path from proj_root
0043 obj.brain_file_output_filename = '';
0044 obj.output_brain_file = '';         % relative path from proj_root
0045 obj.output_area_file  = '';         % relative path from proj_root
0046 obj.output_act_file   = '';         % relative path from proj_root
0047 obj.comment           = '';
0048 
0049 % for making Smooth cortex from mask file
0050 obj.output_mask_file = '';          % relative path from proj_root
0051 obj.job_brain_std2sbj_parm = job_brain_std2sbj_parm_new;
0052 
0053 % for making Cortex from standard brain model
0054 obj.job_brain_model_std2sbj_parm = struct; % No Parameter
0055 
0056 % for view
0057 obj.view2d       = -1; % 2D view figure handle
0058 obj.view3d       = -1; % 3D view figure handle
0059 
0060 %
0061 % --- Dialog instance
0062 %
0063 
0064 % analyze file input
0065 obj.fdlg_analyze = file_dialog;
0066 obj.fdlg_analyze.file_extensions = {'.hdr'};
0067 obj.fdlg_analyze = set(obj.fdlg_analyze, 'current_dir', pwd);
0068 obj.fdlg_analyze.dialog_title = 'Select analyze file';
0069 
0070 % spm file input
0071 obj.fdlg_spm_norm_file = file_dialog;
0072 obj.fdlg_spm_norm_file.file_extensions = {'.mat'};
0073 obj.fdlg_spm_norm_file = set(obj.fdlg_spm_norm_file, 'current_dir', pwd);
0074 obj.fdlg_spm_norm_file.dialog_title = 'Select SPM normalization file';
0075 
0076 %
0077 % --- Figure open
0078 %
0079 fig = openfig('brain_file_maker.fig');
0080 obj.H = guihandles(fig); % H.figure     : main figure handle
0081                          %  .object_tag : gui object handles
0082 
0083 obj = brain_file_maker_update_display(obj);
0084 
0085 % save application instance to figure
0086 guidata(obj.H.figure, obj);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005