Changeset 1137 for trunk/src/series


Ignore:
Timestamp:
Apr 24, 2024, 7:45:09 PM (5 months ago)
Author:
sommeria
Message:

tps improved by a cosine window in each subdomain. Default size of subdomains reduced for faster computation in the civ interface

Location:
trunk/src/series
Files:
3 edited

Legend:

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

    r1127 r1137  
    8181    set(handles.CheckThreshold,'Visible','on')
    8282    set(handles.CheckDeformation,'Value',0)% desactivate
     83    set(handles.num_SubDomainSize(1),'String','250')
     84    set(handles.num_SubDomainSize(2),'String','500')
    8385end
    8486switch Param.Action.ActionName
  • trunk/src/series/civ_series.m

    r1131 r1137  
    924924        time_total=toc(tstart);
    925925        disp(['ellapsed time ' num2str(time_total/60,2) ' minutes'])
    926         disp(['time image reading ' num2str(time_input/60,2) ' minutes'])
    927         disp(['time civ1 ' num2str(time_civ1/60,2) ' minutes'])
    928         disp(['time patch1 ' num2str(time_patch1/60,2) ' minutes'])
    929         disp(['time civ2 ' num2str(time_civ2/60,2) ' minutes'])
    930         disp(['time patch2 ' num2str(time_patch2/60,2) ' minutes'])
    931         disp(['time other ' num2str((time_total-time_input-time_civ1-time_patch1-time_civ2-time_patch2)/60,2) ' minutes'])
     926        disp(['time image reading ' num2str(time_input,2) ' s'])
     927        disp(['time civ1 ' num2str(time_civ1,2) ' s'])
     928        disp(['time patch1 ' num2str(time_patch1,2) ' s'])
     929        disp(['time civ2 ' num2str(time_civ2,2) ' s'])
     930        disp(['time patch2 ' num2str(time_patch2,2) ' s'])
     931        disp(['time other ' num2str((time_total-time_input-time_civ1-time_patch1-time_civ2-time_patch2),2) ' s'])
    932932    end
    933933end
  • trunk/src/series/merge_proj.m

    r1135 r1137  
    6868    ParamOut.FieldTransform = 'on';%can use a transform function
    6969    %%%%% list of possible transform functions (needed only for compilation)
    70 %         ListTransform={'phys','phys_polar','sub_field'};%list of possible transform functions (needed only for compilation)
    71         % if 0==1 %never satisfied but trigger compilation with the appropriate transform functions
    72         %     phys
    73         %     phys_polar
    74         %     sub_field
    75         try
    76             for ilist=1:numel(ListTransform)
    77                 eval(ListTransform{ilist})
    78             end
    79         end
     70    if 0==1 %never satisfied but trigger compilation with the appropriate transform functions ('eval' inactive for compilation)
     71        phys
     72        phys_polar
     73        sub_field
     74    end
    8075
    8176    ParamOut.TransformPath=fullfile(fileparts(which('uvmat')),'transform_field');% path to transform functions
     
    192187    currentdir=pwd;
    193188    cd(Param.FieldTransform.TransformPath)
     189    if strcmp(Param.FieldTransform.TransformName,'sub_field')
     190        checksub=2;% the two into field series will be subtracted
     191    end
    194192    transform_fct=str2func(Param.FieldTransform.TransformName);
    195193    cd (currentdir)
     
    199197        end
    200198    end
    201     checksub=nargin(transform_fct);% number of input arguments for the selected transform fct
    202199    if checksub>2 && NbView>2
    203200        disp_uvmat('WARNING',['only the two first input file series will be combined by ' Param.FieldTransform.TransformName],checkrun)
     
    321318       
    322319        %% transform the input field iview (e.g; phys) if requested (no transform involving two input fields at this stage)
    323         checksub=0;
    324         if ~isempty(transform_fct)
     320        if ~isempty(transform_fct)&& checksub==0
    325321            checksub=nargin(transform_fct);
    326             if checksub>=2
     322            if nargin(transform_fct)>=2
    327323                Data{iview}=transform_fct(Data{iview},XmlData{iview});
    328             elseif checksub==1
     324            else
    329325                Data{iview}=transform_fct(Data{iview});
    330326            end
     
    356352
    357353    %% merge the NbView fields
    358 %     if checksub<=2
     354    if checksub==0
    359355        [MergeData,errormsg]=merge_field(Data);%concatene all the input field series by fct merge_data
    360 %     elseif checksub==3
    361 %         MergeData=transform_fct(Data{1},XmlData{1},Data{2}); %combine the two input file series
    362 %    else
    363 %         MergeData=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2});%combine the two input file series with calibration parameters
    364 %     end
     356    else
     357        MergeData=transform_fct(Data{1},XmlData{1},Data{2}); %combine the two input file series
     358    % else
     359    %     MergeData=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2});%combine the two input file series with calibration parameters
     360    end
    365361    if ~isempty(errormsg)
    366362        disp_uvmat('ERROR',errormsg,checkrun);
Note: See TracChangeset for help on using the changeset viewer.