Ignore:
Timestamp:
Feb 17, 2015, 1:46:13 AM (9 years ago)
Author:
sommeria
Message:

civ improved at mask edge

File:
1 edited

Legend:

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

    r862 r873  
    373373
    374374%% Civ1 parameters
     375Param.CheckCiv1=1;
    375376Param.Civ1.CorrBoxSize=[25 25];
    376377Param.Civ1.SearchBoxSize=[55 55];
     
    381382Param.Civ1.CheckGrid=0;
    382383Param.Civ1.CheckMask=0;
     384Param.Civ1.Mask='';
    383385Param.Civ1.CheckThreshold=0;
    384386Param.Civ1.TestCiv1=0;
    385387
    386388%% Fix1 parameters
     389Param.CheckFix1=1;
    387390Param.Fix1.CheckFmin2=1;
    388391Param.Fix1.CheckF3=1;
     
    390393
    391394%% Patch1 parameters
     395Param.CheckPatch1=1;
    392396Param.Patch1.FieldSmooth=10;
    393397Param.Patch1.MaxDiff=1.5000;
     
    396400
    397401%% Civ2 parameters
     402Param.CheckCiv2=1;
    398403Param.Civ2.CorrBoxSize=[21 21];
    399404Param.Civ2.SearchBoxSize=[27 27];
     
    403408Param.Civ2.CheckGrid=0;
    404409Param.Civ2.CheckMask=0;
     410Param.Civ2.Mask='';
    405411Param.Civ2.CheckThreshold=0;
    406412Param.Civ2.TestCiv2=0;
    407413
    408414%% Fix2 parameters
     415Param.CheckFix2=1;
    409416Param.Fix2.CheckFmin2=1;
    410417Param.Fix2.CheckF4=1;
     
    413420
    414421%% Patch2 parameters
     422Param.CheckPatch2=1;
    415423Param.Patch2.FieldSmooth=2;
    416424Param.Patch2.MaxDiff=1.5000;
     
    419427
    420428fill_GUI(Param,handles.civ_input)% fill the elements of the GUI series with the input parameters
     429update_CivOptions(handles,0)
    421430
    422431% -----------------------------------------------------------------------
     
    11291138% --- Executes on selection in menu CorrSmooth.
    11301139function num_CorrSmooth_Callback(hObject, eventdata, handles)
    1131 set(handles.configSource,'String','NEW')
     1140set(handles.ConfigSource,'String','NEW')
    11321141set(handles.OK,'BackgroundColor',[1 0 1])
    11331142%------------------------------------------------------------------------
     
    14731482end
    14741483set(hObject,'BackgroundColor',[1 0 1])
    1475 set(handles.configSource,'String','NEW')
     1484set(handles.ConfigSource,'String','NEW')
    14761485set(handles.OK,'BackgroundColor',[1 0 1])
    14771486%------------------------------------------------------------------------
     
    15181527    set(handle_txtbox,'Visible','off')
    15191528end
    1520 set(handles.configSource,'String','NEW')
    1521 set(handles.configSource,'BackgroundColor',[1 0 1])
     1529set(handles.ConfigSource,'String','NEW')
     1530set(handles.ConfigSource,'BackgroundColor',[1 0 1])
    15221531
    15231532% %------------------------------------------------------------------------
     
    17351744    set(obj,'Visible','off')
    17361745end
    1737 set(handles.configSource,'String','NEW')
     1746set(handles.ConfigSource,'String','NEW')
    17381747set(handles.OK,'BackgroundColor',[1 0 1])
    17391748%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
     
    17481757if get(handles.TestCiv1,'Value')
    17491758    set(handles.TestCiv1,'BackgroundColor',[1 1 0])% paint TestCiv1 button to yellow to confirm civ launch 
    1750     %Param.Action.RUN=1;
    1751    
     1759    set(handles.CheckFix1,'value',0)% desactivate next step
     1760    set(handles.CheckPatch1,'value',0)% desactivate next step
     1761    set(handles.CheckCiv2,'value',0)% desactivate next step
     1762    set(handles.CheckFix2,'value',0)% desactivate next step
     1763    set(handles.CheckPatch2,'value',0)% desactivate next step
     1764    update_CivOptions(handles,0)
    17521765      hseries=findobj(allchild(0),'Tag','series');
    17531766     Param=read_GUI(hseries);
     
    18871900    end
    18881901    figure(1)
    1889     hold on
    1890     semilogx(SmoothingParam,DiffVel,'b',SmoothingParam,NbExclude,'r')
     1902    semilogx(SmoothingParam,DiffVel,'b',SmoothingParam,NbExclude,'r',SmoothingParam,0.2*ones(size(SmoothingParam)),'m')
    18911903    grid on
    1892     legend('rms velocity diff. Patch1-Civ1 (pixels)','proportion of excluded vectors (between 0 to 1)')
     1904    legend('rms velocity diff. Patch1-Civ1 (pixels)','proportion of excluded vectors (between 0 to 1)','recommended diff Patch1-Civ1')
    18931905    xlabel('smoothing parameter')
    18941906    ylabel('smoothing effect')
     
    19121924if get(handles.TestCiv2,'Value')
    19131925    set(handles.TestCiv2,'BackgroundColor',[1 1 0])% paint TestCiv1 button to yellow to confirm civ launch
     1926    set(handles.CheckFix2,'value',0)% desactivate next step
     1927    set(handles.CheckPatch2,'value',0)% desactivate next step
     1928    update_CivOptions(handles,0)
    19141929      hseries=findobj(allchild(0),'Tag','series');
    19151930     Param=read_GUI(hseries);
     
    20652080    end
    20662081    figure(1)
    2067     hold on
    2068     semilogx(SmoothingParam,DiffVel,'b',SmoothingParam,NbExclude,'r')
     2082    semilogx(SmoothingParam,DiffVel,'b',SmoothingParam,NbExclude,'r',SmoothingParam,0.1*ones(size(SmoothingParam)),'m')
    20692083    grid on
    2070     legend('rms velocity diff. Patch2-Civ2 (pixels)','proportion of excluded vectors (between 0 to 1)')
     2084    legend('rms velocity diff. Patch2-Civ2 (pixels)','proportion of excluded vectors (between 0 to 1)','recommended value diff. Patch2-Civ2')
    20712085    xlabel('smoothing parameter')
    20722086    ylabel('smoothing effect')
Note: See TracChangeset for help on using the changeset viewer.