Changeset 289 for trunk


Ignore:
Timestamp:
Nov 19, 2011, 7:39:22 PM (12 years ago)
Author:
sommeria
Message:

civ.m: gestion of subdirectory and pair display for civ2 improved

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/check_files.m

    r287 r289  
    143143if status==0
    144144    [~,result]=system('svn info');
    145     t=regexp(result,'vision\s:\s(?<rev>\d+)','names');
     145    t=regexp(result,'R.vision\s:\s(?<rev>\d+)','names');
    146146    svn_info.cur_rev=num2str(t.rev);
    147147    [~,result]=system('svn info -r ''HEAD''');
    148     t=regexp(result,'vision\s:\s(?<rev>\d+)','names');
     148    t=regexp(result,'R.vision\s:\s(?<rev>\d+)','names');
    149149    svn_info.rep_rev=num2str(t.rev);
    150150    [~,result]=system('svn status');   
  • trunk/src/civ.m

    r288 r289  
    2323%TODO: search range
    2424
    25 % Last Modified by GUIDE v2.5 19-Nov-2011 10:00:27
     25% Last Modified by GUIDE v2.5 19-Nov-2011 19:26:20
    2626% Begin initialization code - DO NOT EDIT
    2727gui_Singleton = 1;
     
    363363        testciv=0;
    364364    end
    365     set(handles.subdir_civ1,'String',subdir);%set the default subdir directories for installing the .nc results
    366     set(handles.subdir_civ2,'String',subdir);
     365    set(handles.txt_SubdirCiv1,'String',subdir);%set the default subdir directories for installing the .nc results
     366    set(handles.txt_SubdirCiv2,'String',subdir);
    367367    browse.testciv=testciv;
    368368    browse.ind_opening=ind_opening;
     
    692692end
    693693if isempty(time) && ~strcmp(nom_type_search,'none') && ~strcmp(nom_type_search,'') && ~strcmp(nom_type_search,'*')
    694     subdir=get(handles.subdir_civ1,'String');
     694    subdir=get(handles.txt_SubdirCiv1,'String');
    695695    incr_pair=[0 0];%default
    696696    if isfield(browse,'incr_pair')
     
    831831end
    832832set(handles.ListSubdirCiv1,'Value',1)
    833 set(handles.ListSubDirCiv2,'Value',1)
     833set(handles.ListSubdirCiv2,'Value',1)
    834834set(handles.ListSubdirCiv1,'String',[listdir;'new...'])
    835 set(handles.ListSubDirCiv2,'String',[listdir;'new...'])
     835set(handles.ListSubdirCiv2,'String',[listdir;'new...'])
    836836if isempty(listdir)
    837837    dirname=listdir{1};
     
    839839    dirname='CIV'; %default civ directory name
    840840end
    841 set(handles.subdir_civ1,'String',dirname)
    842 set(handles.subdir_civ2,'String',dirname)
     841set(handles.txt_SubdirCiv1,'String',dirname)
     842set(handles.txt_SubdirCiv2,'String',dirname)
    843843%check wether the current subdir exists:
    844 % subdir_civ1=get(handles.subdir_civ1,'String');
    845 % subdir_civ2=get(handles.subdir_civ2,'String');
     844% txt_SubdirCiv1=get(handles.txt_SubdirCiv1,'String');
     845% txt_SubdirCiv2=get(handles.txt_SubdirCiv2,'String');
    846846
    847847ListPairMode_Callback(hObject, eventdata, handles)
     
    10071007% determine the menu for checkciv1 pairs depending on existing netcdf file at the middle of
    10081008% the field series set by first_i, incr, last_i
    1009 function find_netcpair_civ1(hObject, eventdata, handles)
     1009function find_netcpair_civ1(handles)
    10101010%------------------------------------------------------------------------
    10111011set(gcf,'Pointer','watch')
     
    10461046
    10471047%reads .nc subdirectoy and image numbers from the interface
    1048 subdir_civ1=get(handles.subdir_civ1,'String');%subdirectory subdir_civ1 for the netcdf data
     1048subdir_civ1=get(handles.txt_SubdirCiv1,'String');%subdirectory subdir_civ1 for the netcdf data
    10491049ref_i=str2double(get(handles.ref_i,'String'));
    10501050if isequal(mode,'pair j1-j2')%|isequal(mode,'st_pair j1-j2')
     
    11831183% determine the menu for checkciv2 pairs depending on the existing netcdf file at the
    11841184%middle of the series set by first_i, incr, last_i
    1185 function find_netcpair_civ2(hObject, eventdata, handles)
     1185function find_netcpair_civ2(handles)
    11861186%------------------------------------------------------------------------
    11871187set(gcf,'Pointer','watch')
     
    12311231
    12321232%reads .nc subdirectory and image numbers from the interface
    1233 subdir_civ1=get(handles.subdir_civ1,'String');%subdirectory subdir_civ1 for the netcdf data
    1234 subdir_civ2=get(handles.subdir_civ2,'String');%subdirectory subdir_civ2 for the netcdf data
     1233subdir_civ1=get(handles.txt_SubdirCiv1,'String');%subdirectory subdir_civ1 for the netcdf data
     1234subdir_civ2=get(handles.txt_SubdirCiv2,'String');%subdirectory subdir_civ2 for the netcdf data
    12351235% first_i=str2num(get(handles.first_i,'String'));
    12361236% last_i=str2num(get(handles.last_i,'String'));
     
    14901490
    14911491%%read the civ GUI
    1492 Param=read_GUI(handles.civ)
     1492Param=read_GUI(handles.civ);
    14931493%% check the selected list of operations:
    1494 operations={'CIV1','FIX1','PATCH1','CIV2','FIX2','PATCH2'};
     1494operations={'Civ1','Fix1','Patch1','Civ2','Fix2','Patch2'};
    14951495box_test=[Param.CheckCiv1 Param.CheckFix1 Param.CheckPatch1 Param.CheckCiv2 Param.CheckFix2 Param.CheckPatch2];
    14961496
     
    16211621        binary_list={'Civ1Bin','Civ2Bin','PatchBin','FixBin'};
    16221622    case 'CivAll'
    1623         binary_list={'Civ'}
     1623        binary_list={'Civ'};
    16241624    case 'Matlab'
    16251625        if batch
     
    16311631    if isfield(Param.xml,bin_name{1})
    16321632        if ~exist(Param.xml.(bin_name{1}),'file')%look for the full path if the file name has been defined with a relative path in PARAM.xml
    1633             fullname=fullfile(path_civ,Param.xml.(bin_name{1}))
     1633            fullname=fullfile(path_civ,Param.xml.(bin_name{1}));
    16341634            if exist(fullname,'file')
    16351635                Param.xml.(bin_name{1})=fullname;
     
    22822282          MenuFile=hh.MenuFile;
    22832283      end
    2284       MenuFile=[filecell.ima1.civ1(1,1); MenuFile];
     2284      if isfield(filecell.nc,'civ2')
     2285          MenuFile=[filecell.nc.civ2{1,1}; MenuFile];
     2286      else
     2287           MenuFile=[filecell.nc.civ1{1,1}; MenuFile];
     2288      end
    22852289      save (profil_perso,'MenuFile','-append'); %store the file names for future opening of uvmat
    22862290else
     
    25002504
    25012505%check dir
    2502 subdir_civ1=get(handles.subdir_civ1,'String');%subdirectory subdir_civ1 for the netcdf output data
    2503 subdir_civ2=get(handles.subdir_civ2,'String');
     2506subdir_civ1=get(handles.txt_SubdirCiv1,'String');%subdirectory subdir_civ1 for the netcdf output data
     2507subdir_civ2=get(handles.txt_SubdirCiv2,'String');
    25042508if isequal(subdir_civ1,''),subdir_civ1='CIV'; end% put default subdir
    25052509if isequal(subdir_civ2,''),subdir_civ2=subdir_civ1; end% put default subdir
     
    25492553        end
    25502554 
    2551         %create the new subdir_civ1
     2555        %create the new txt_SubdirCiv1
    25522556        if ~exist(fullfile(Path_ima,subdir_civ1_new),'dir')
    25532557%             cd(Path_ima);         
     
    25912595                end
    25922596            end
    2593             %create the new subdir_civ1
     2597            %create the new txt_SubdirCiv1
    25942598            if ~exist(fullfile(Path_ima,subdir_civ1_new),'dir')
    25952599%                    cd(Path_ima);         
     
    27652769            end
    27662770            subdir_civ2=subdir_civ2_new;
    2767             %create the new subdir_civ1
     2771            %create the new txt_SubdirCiv1
    27682772            if ~exist(fullfile(Path_ima,subdir_civ2_new),'dir')
    27692773                [xx,m2]=mkdir(subdir_civ2_new);
     
    29412945    end
    29422946end
    2943 set(handles.subdir_civ1,'String',subdir_civ1);%update the edit box
    2944 set(handles.subdir_civ2,'String',subdir_civ2);%update the edit box
     2947set(handles.txt_SubdirCiv1,'String',subdir_civ1);%update the edit box
     2948set(handles.txt_SubdirCiv2,'String',subdir_civ2);%update the edit box
    29452949browse.nom_type_nc=nom_type_nc;
    29462950set(handles.RootName,'UserData',browse); %update the nomenclature type for uvmat
     
    31643168function CheckCiv1_Callback(hObject, eventdata, handles)
    31653169%------------------------------------------------------------------------
    3166 state=get(handles.CheckCiv1,'Value');
    3167 enable_civ1(handles,state)
    3168 if state
    3169     enable_pair1(handles,'on')
    3170 end
    3171 find_netcpair_civ1(hObject, eventdata, handles);
     3170update_CivOptions(handles)
    31723171
    31733172%------------------------------------------------------------------------
     
    31753174function CheckFix1_Callback(hObject, eventdata, handles)
    31763175%------------------------------------------------------------------------
    3177 enable_fix1(handles,get(handles.CheckFix1,'Value'))
     3176update_CivOptions(handles)
    31783177
    31793178%------------------------------------------------------------------------
     
    31813180function CheckPatch1_Callback(hObject, eventdata, handles)
    31823181%------------------------------------------------------------------------
    3183 enable_patch1(handles,get(handles.CheckPatch1,'Value'))
     3182update_CivOptions(handles)
    31843183
    31853184%------------------------------------------------------------------------
     
    31873186function CheckCiv2_Callback(hObject, eventdata, handles)
    31883187%------------------------------------------------------------------------
    3189 state=get(handles.CheckCiv2,'Value');
    3190 enable_civ2(handles,state)
    3191 if state
    3192     find_netcpair_civ2(hObject, eventdata, handles)
    3193     enable_pair1(handles,'on')
    3194 end
     3188update_CivOptions(handles)
    31953189
    31963190%------------------------------------------------------------------------
     
    31983192function CheckFix2_Callback(hObject, eventdata, handles)
    31993193%------------------------------------------------------------------------
    3200 state=get(handles.CheckFix2,'Value');
    3201 enable_fix2(handles,state)
    3202 if state
    3203     find_netcpair_civ2(hObject, eventdata, handles) % select the available netcdf files
    3204 end
     3194update_CivOptions(handles)
    32053195
    32063196%------------------------------------------------------------------------
     
    32083198function CheckPatch2_Callback(hObject, eventdata, handles)
    32093199%------------------------------------------------------------------------
    3210 state=get(handles.CheckPatch2,'Value');
    3211 enable_patch2(handles,state)
    3212 if state
    3213     find_netcpair_civ2(hObject, eventdata, handles) % select the available netcdf files
    3214 end
     3200update_CivOptions(handles)
     3201
     3202%------------------------------------------------------------------------
     3203% --- activated by any checkbox controling the selection of Civ1,Fix1,Patch1,Civ2,Fix2,Patch2
     3204function update_CivOptions(handles)
     3205%------------------------------------------------------------------------
     3206checkbox=zeros(1,6);
     3207checkbox(1)=get(handles.CheckCiv1,'Value');
     3208checkbox(2)=get(handles.CheckFix1,'Value');
     3209checkbox(3)=get(handles.CheckPatch1,'Value');
     3210checkbox(4)=get(handles.CheckCiv2,'Value');
     3211checkbox(5)=get(handles.CheckFix2,'Value');
     3212checkbox(6)=get(handles.CheckPatch2,'Value');
     3213ind_selected=find(checkbox);
     3214if ~isempty(ind_selected)
     3215  RootName=get(handles.RootName,'String');
     3216    if isempty(RootName)
     3217         msgbox_uvmat('ERROR','No input file')
     3218        return
     3219    end
     3220end
     3221set(handles.PairIndices,'Visible','on')
     3222set(handles.txt_SubdirCiv1,'Visible','on')
     3223set(handles.ListSubdirCiv1,'Visible','on')
     3224find_netcpair_civ1(handles) % select the available netcdf files
     3225% check_civ2pair=ind_selected(4;6);
     3226if max(checkbox(4:6))% case of civ2 pair choice needed
     3227    set(handles.TitlePairCiv2,'Visible','on')
     3228    set(handles.TitleSubdirCiv2,'Visible','on')
     3229    set(handles.txt_SubdirCiv2,'Visible','on')
     3230    set(handles.ListSubdirCiv2,'Visible','on')
     3231    set(handles.ListPairCiv2,'Visible','on')
     3232    find_netcpair_civ2(handles) % select the available netcdf files
     3233else
     3234    set(handles.TitleSubdirCiv2,'Visible','off')
     3235    set(handles.txt_SubdirCiv2,'Visible','off')
     3236    set(handles.ListSubdirCiv2,'Visible','off')
     3237    set(handles.ListPairCiv2,'Visible','off')
     3238end
     3239%index_last=find(checkbox,1,'last');%last selected button
     3240options={'Civ1','Fix1','Patch1','Civ2','Fix2','Patch2'};
     3241for ilist=1:length(options)
     3242    if checkbox(ilist)
     3243        set(handles.(options{ilist}),'Visible','on')
     3244    else
     3245        set(handles.(options{ilist}),'Visible','off')
     3246    end
     3247end
     3248
     3249% end
     3250
     3251% set(handles.(operations(ind_selected)),'Visible','on')
     3252%
     3253% if state
     3254%     RootName=get(handles.RootName,'String');
     3255%     if isempty(RootName)
     3256%          msgbox_uvmat('ERROR','No input file')
     3257%         return
     3258%     end
     3259%     set(handles.Civ1,'Visible','on')   
     3260%     set(handles.PairIndices,'Visible','on')
     3261% else
     3262%     set(handles.Civ1,'Visible','off') 
     3263% end
     3264
    32153265
    32163266%------------------------------------------------------------------------
     
    33273377%------------------------------------------------------------------------
    33283378% --- Executes on carriage return on the subdir checkciv1 edit window
    3329 function subdir_civ1_Callback(hObject, eventdata, handles)
    3330 %------------------------------------------------------------------------
    3331 subdir=get(handles.subdir_civ1,'String');
    3332 set(handles.subdir_civ2,'String',subdir);% set civ2 directory the same as civ1 by default
     3379function txt_SubdirCiv1_Callback(hObject, eventdata, handles)
     3380%------------------------------------------------------------------------
     3381subdir=get(handles.txt_SubdirCiv1,'String');
     3382set(handles.txt_SubdirCiv2,'String',subdir);% set civ2 directory the same as civ1 by default
    33333383menu_str=get(handles.ListSubdirCiv1,'String');% read the list of subdirectories for update
    33343384ichoice=find(strcmp(subdir,menu_str),1);
     
    33453395%------------------------------------------------------------------------
    33463396% --- Executes on carriage return on the subdir checkciv1 edit window
    3347 function subdir_civ2_Callback(hObject, eventdata, handles)
    3348 %------------------------------------------------------------------------
    3349 subdir=get(handles.subdir_civ1,'String');
    3350 menu_str=get(handles.ListSubDirCiv2,'String');% read the list of subdirectories for update
     3397function txt_SubdirCiv2_Callback(hObject, eventdata, handles)
     3398%------------------------------------------------------------------------
     3399subdir=get(handles.txt_SubdirCiv1,'String');
     3400menu_str=get(handles.ListSubdirCiv2,'String');% read the list of subdirectories for update
    33513401ichoice=find(strcmp(subdir,menu_str),1);
    33523402if isempty(ichoice)
     
    33553405    ilist=ichoice;
    33563406end
    3357 set(handles.ListSubDirCiv2,'Value',ilist)% select the selected subdir in the menu
     3407set(handles.ListSubdirCiv2,'Value',ilist)% select the selected subdir in the menu
    33583408%update the list of available pairs from netcdf files in the new directory
    33593409if ~get(handles.CheckCiv2,'Value') && ~get(handles.CheckCiv1,'Value') && ~get(handles.CheckFix1,'Value') && ~get(handles.CheckPatch1,'Value')
     
    35453595nbslice=1;
    35463596
    3547 % subdir=get(handles.subdir_civ1,'String');
     3597% subdir=get(handles.txt_SubdirCiv1,'String');
    35483598[Path,Name]=fileparts(filebase);
    35493599if ~isdir(Path)
     
    36363686    subdir='CIV'; %default subdirectory
    36373687end
    3638 set(handles.subdir_civ1,'String',subdir);
     3688set(handles.txt_SubdirCiv1,'String',subdir);
    36393689find_netcpair_civ1(hObject, eventdata, handles)
    36403690% end
    36413691
    36423692%------------------------------------------------------------------------
    3643 % --- Executes on button press in ListSubDirCiv2.
    3644 function ListSubDirCiv2_Callback(hObject, eventdata, handles)
    3645 %------------------------------------------------------------------------
    3646 list_subdir_civ2=get(handles.ListSubDirCiv2,'String');
    3647 val=get(handles.ListSubDirCiv2,'Value');
     3693% --- Executes on button press in ListSubdirCiv2.
     3694function ListSubdirCiv2_Callback(hObject, eventdata, handles)
     3695%------------------------------------------------------------------------
     3696list_subdir_civ2=get(handles.ListSubdirCiv2,'String');
     3697val=get(handles.ListSubdirCiv2,'Value');
    36483698subdir=list_subdir_civ2{val};
    36493699if strcmp(subdir,'new...')
    36503700    subdir='CIV'; %default subdirectory
    36513701end
    3652 set(handles.subdir_civ2,'String',subdir);
    3653 %     set(handles.ListSubDirCiv2,'Value',1);
     3702set(handles.txt_SubdirCiv2,'String',subdir);
     3703%     set(handles.ListSubdirCiv2,'Value',1);
    36543704
    36553705
     
    40144064    end
    40154065    set(handles.Civ2,'Visible','on')
     4066    set(handles.ListSubdirCiv2,'Visible','on')
     4067    set(handles.SubdirCiv2,'Visible','on')
     4068    set(handles.TitleSubdirCiv2,'Visible','on')
    40164069else
    40174070    set(handles.Civ2,'Visible','off')
     
    40464099%     if isequal(get(handles.CheckFix2,'Value'),0) & isequal(get(handles.CheckPatch2,'Value'),0)
    40474100%         set(handles.ListPairCiv2,'Visible','off')
    4048 %         set(handles.subdir_civ2,'Visible','off')
    4049 %         set(handles.subdir_civ2_text,'Visible','off')
     4101%         set(handles.txt_SubdirCiv2,'Visible','off')
     4102%         set(handles.TitleSubdirCiv2,'Visible','off')
    40504103%         set(handles.dt_unit_civ2,'Visible','off')
    40514104%         %set(handles.ref_i_civ2,'Visible','off')
     
    40564109% else
    40574110%     set(handles.ListPairCiv2,'Visible','on')
    4058 %     set(handles.subdir_civ2,'Visible','on')
    4059 %     set(handles.subdir_civ2_text,'Visible','on')
     4111%     set(handles.txt_SubdirCiv2,'Visible','on')
     4112%     set(handles.TitleSubdirCiv2,'Visible','on')
    40604113%     set(handles.dt_unit_civ2,'Visible','on')
    40614114%   %  set(handles.ref_i_civ2,'Visible','on')
     
    41004153% set(handles.CheckMask,'Visible','on')
    41014154% set(handles.ListPairCiv2,'Visible','on')
    4102 % set(handles.subdir_civ2,'Visible','on')
    4103 % set(handles.subdir_civ2_text,'Visible','on')
     4155% set(handles.txt_SubdirCiv2,'Visible','on')
     4156% set(handles.TitleSubdirCiv2,'Visible','on')
    41044157% set(handles.get_ref_fix2,'Visible','on')
    41054158% set(handles.ref_fix2,'Visible','on')
     
    41274180% if isequal(get(handles.CheckCiv2,'Value'),0) & isequal(get(handles.CheckPatch2,'Value'),0)
    41284181%     set(handles.ListPairCiv2,'Visible','off')
    4129 %     set(handles.subdir_civ2,'Visible','off')
    4130 %     set(handles.subdir_civ2_text,'Visible','off')
     4182%     set(handles.txt_SubdirCiv2,'Visible','off')
     4183%     set(handles.TitleSubdirCiv2,'Visible','off')
    41314184% end
    41324185
     
    41584211% % set(handles.grid_patch2,'Visible','on')
    41594212% set(handles.ListPairCiv2,'Visible','on')
    4160 % set(handles.subdir_civ2,'Visible','on')
    4161 % set(handles.subdir_civ2_text,'Visible','on')
     4213% set(handles.txt_SubdirCiv2,'Visible','on')
     4214% set(handles.TitleSubdirCiv2,'Visible','on')
    41624215% stereo_test=get(handles.ListCompareMode,'Value');
    41634216% if stereo_test==3
     
    41854238% if isequal(get(handles.CheckCiv2,'Value'),0) & isequal(get(handles.CheckFix2,'Value'),0)
    41864239%     set(handles.ListPairCiv2,'Visible','off')
    4187 %     set(handles.subdir_civ2,'Visible','off')
    4188 %     set(handles.subdir_civ2_text,'Visible','off')
     4240%     set(handles.txt_SubdirCiv2,'Visible','off')
     4241%     set(handles.TitleSubdirCiv2,'Visible','off')
    41894242% end
    41904243% set(handles.CheckStereo,'Visible','off')
     
    41924245function enable_pair1(handles,state)
    41934246%------------------------------------------------------------------------
    4194 set(handles.subdir_civ1,'Visible',state)
     4247set(handles.txt_SubdirCiv1,'Visible',state)
    41954248set(handles.ListSubdirCiv1,'Visible',state)
    4196 set(handles.SUBDIR_CIV1_txt,'Visible',state)
     4249set(handles.TitleSubdirCiv1,'Visible',state)
    41974250%set(handles.frame_subdirciv1,'Visible',state)
    41984251set(handles.ListPairCiv1,'Visible',state)
    4199 set(handles.PairCiv1_title,'Visible',state)
     4252set(handles.TitlePairCiv1,'Visible',state)
    42004253%set(handles.dt_unit,'Visible',state)
    42014254%set(handles.PAIR_frame,'Visible',state)
     
    46584711    [path1]=fileparts(filebase);
    46594712    if isunix
    4660         [status,path]=system(['readlink ' path])
    4661         [status,path1]=system(['readlink ' path1])% look for the true path in case of symbolic paths
     4713        [status,path]=system(['readlink ' path]);
     4714        [status,path1]=system(['readlink ' path1]);% look for the true path in case of symbolic paths
    46624715    end
    46634716    if ~strcmp(path1,path)
     
    51455198
    51465199
    5147 % --- Executes on button press in CheckStereo.
    5148 function CheckStereo_Callback(hObject, eventdata, handles)
    5149 % hObject    handle to CheckStereo (see GCBO)
    5150 % eventdata  reserved - to be defined in a future version of MATLAB
    5151 % handles    structure with handles and user data (see GUIDATA)
    5152 
    5153 % Hint: get(hObject,'Value') returns toggle state of CheckStereo
    5154 
    5155 
    5156 
    5157 function num_SubdomainSize_Callback(hObject, eventdata, handles)
    5158 % hObject    handle to num_SubdomainSize (see GCBO)
    5159 % eventdata  reserved - to be defined in a future version of MATLAB
    5160 % handles    structure with handles and user data (see GUIDATA)
    5161 
    5162 % Hints: get(hObject,'String') returns contents of num_SubdomainSize as text
    5163 %        str2double(get(hObject,'String')) returns contents of num_SubdomainSize as a double
    5164 
    5165 
    5166 
    5167 function num_SmoothingParam_Callback(hObject, eventdata, handles)
    5168 % hObject    handle to num_SmoothingParam (see GCBO)
    5169 % eventdata  reserved - to be defined in a future version of MATLAB
    5170 % handles    structure with handles and user data (see GUIDATA)
    5171 
    5172 % Hints: get(hObject,'String') returns contents of num_SmoothingParam as text
    5173 %        str2double(get(hObject,'String')) returns contents of num_SmoothingParam as a double
    5174 
    5175 
    5176 
    5177 function num_MaxDiff_Callback(hObject, eventdata, handles)
    5178 % hObject    handle to num_MaxDiff (see GCBO)
    5179 % eventdata  reserved - to be defined in a future version of MATLAB
    5180 % handles    structure with handles and user data (see GUIDATA)
    5181 
    5182 % Hints: get(hObject,'String') returns contents of num_MaxDiff as text
    5183 %        str2double(get(hObject,'String')) returns contents of num_MaxDiff as a double
    5184 
    5185 
    5186 function num_Nx_Callback(hObject, eventdata, handles)
    5187 % hObject    handle to num_Nx (see GCBO)
    5188 % eventdata  reserved - to be defined in a future version of MATLAB
    5189 % handles    structure with handles and user data (see GUIDATA)
    5190 
    5191 % Hints: get(hObject,'String') returns contents of num_Nx as text
    5192 %        str2double(get(hObject,'String')) returns contents of num_Nx as a double
    5193 
    5194 
    5195 function num_Ny_Callback(hObject, eventdata, handles)
    5196 % hObject    handle to num_Ny (see GCBO)
    5197 % eventdata  reserved - to be defined in a future version of MATLAB
    5198 % handles    structure with handles and user data (see GUIDATA)
    5199 
    5200 % Hints: get(hObject,'String') returns contents of num_Ny as text
    5201 %        str2double(get(hObject,'String')) returns contents of num_Ny as a double
    5202 
    5203 
    52045200% --------------------------------------------------------------------
    52055201function MenuHelp_Callback(hObject, eventdata, handles)
     
    53535349MaxVel_string='';%default
    53545350if ~isempty(Param.(fixname).MaxVel)
    5355     MaxVel_string=[' -threshV ' num2str(Param.(fixname).MaxVel)]
     5351    MaxVel_string=[' -threshV ' num2str(Param.(fixname).MaxVel)];
    53565352end
    53575353if isunix
     
    53915387%         ' -max ' thresh_value ' -nopt ' subdomain_patch  '  > ' namelog ' 2>&1']; % redirect standard output to the log file
    53925388% end
    5393 
    5394 
    5395 % --- Executes on button press in CheckStereo.
    5396 function CheckStereo_Callback(hObject, eventdata, handles)
    5397 % hObject    handle to CheckStereo (see GCBO)
    5398 % eventdata  reserved - to be defined in a future version of MATLAB
    5399 % handles    structure with handles and user data (see GUIDATA)
    5400 
    5401 % Hint: get(hObject,'Value') returns toggle state of CheckStereo
Note: See TracChangeset for help on using the changeset viewer.