Ignore:
Timestamp:
Mar 12, 2025, 8:13:18 PM (2 days ago)
Author:
sommeria
Message:

background image introduced for civ1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ_input.m

    r1176 r1177  
    328328    PairMenu={'series(Di)'};
    329329elseif MaxIndex_j-MinIndex_j==1
    330     PairMenu={'pair j1-j2'};
     330    PairMenu={'pair j1-j2';'series(Di)'};
    331331elseif  MaxIndex_i==MinIndex_i && MaxIndex_j-MinIndex_j>2% simple series in j
    332332    PairMenu={'pair j1-j2';'series(Dj)'};
     
    19681968hparent=get(hObject,'parent');
    19691969hchildren=get(hparent,'children');
    1970 handle_txtbox=findobj(hchildren,'tag','Background');% look for the mask name box in the same panel
    1971 testmask=0;
     1970handle_txtbox=findobj(hchildren,'tag','Background');% look for the background name box in the same panel
     1971testbackground=0;
    19721972if get(hObject,'Value')% if the checkbox is activated
    19731973    hseries=findobj(allchild(0),'Tag','series');
     
    19791979        ind_A=1;% line index of the (first) image series
    19801980    end
    1981     % browse for a mask
     1981    % browse for a background
    19821982    filebackground= uigetfile_uvmat('pick a background image file:',InputTable{ind_A,1},'image');
    19831983    if ~isempty(filebackground)
     
    19921992        end
    19931993        set(hObject,'UserData',filebackground);%store for future use
    1994         testmask=1;
    1995     end
    1996 end
    1997 if testmask
     1994        testbackground=1;
     1995    end
     1996end
     1997if testbackground
    19981998    set(handles.Background,'Visible','on')
    19991999    set(handles.Background,'String',filebackground)
     
    20092009set(handles.ConfigSource,'String','NEW')
    20102010set(handles.ConfigSource,'BackgroundColor',[1 0 1])
    2011 
    2012 
    2013 
    2014 function Background_Callback(hObject, eventdata, handles)
    2015 % hObject    handle to Background (see GCBO)
    2016 % eventdata  reserved - to be defined in a future version of MATLAB
    2017 % handles    structure with handles and user data (see GUIDATA)
    2018 
    2019 % Hints: get(hObject,'String') returns contents of Background as text
    2020 %        str2double(get(hObject,'String')) returns contents of Background as a double
Note: See TracChangeset for help on using the changeset viewer.