0001 function [obj] = brain_file_maker_new(proj_root)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
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 = '';
0028 obj.analyze_info = [];
0029
0030 obj.product_type = 1;
0031
0032
0033
0034 obj.brain_dir = '';
0035 obj.brain_file = '';
0036 obj.act_file = '';
0037 obj.area_file = '';
0038 obj.job_smooth_cortex_parm = job_smooth_cortex_parm_new;
0039
0040
0041 obj.spm_norm_file = '';
0042 obj.brain_file_output_dir = '';
0043 obj.brain_file_output_filename = '';
0044 obj.output_brain_file = '';
0045 obj.output_area_file = '';
0046 obj.output_act_file = '';
0047 obj.comment = '';
0048
0049
0050 obj.output_mask_file = '';
0051 obj.job_brain_std2sbj_parm = job_brain_std2sbj_parm_new;
0052
0053
0054 obj.job_brain_model_std2sbj_parm = struct;
0055
0056
0057 obj.view2d = -1;
0058 obj.view3d = -1;
0059
0060
0061
0062
0063
0064
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
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
0078
0079 fig = openfig('brain_file_maker.fig');
0080 obj.H = guihandles(fig);
0081
0082
0083 obj = brain_file_maker_update_display(obj);
0084
0085
0086 guidata(obj.H.figure, obj);