Ignore:
Timestamp:
Apr 3, 2013, 10:21:53 AM (12 years ago)
Author:
sommeria
Message:

various bug corrections. Steps further for civ_series (still development needed)

File:
1 edited

Legend:

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

    r596 r599  
    171171        nbaver_ima=nbaver*step;
    172172    end
    173     ParamOut.InputGUI.CheckVolume=strcmp(answer{1},'Yes');
    174     ParamOut.InputGUI.SlidingSequenceLength=nbaver_ima;
    175     ParamOut.InputGUI.BrightnessRankThreshold=str2num(answer{3});
     173    ParamOut.ActionInput.CheckVolume=strcmp(answer{1},'Yes');
     174    ParamOut.ActionInput.SlidingSequenceLength=nbaver_ima;
     175    ParamOut.ActionInput.BrightnessRankThreshold=str2num(answer{3});
    176176   
    177177    % apply the image rescaling function 'level' (avoid the blinking effects of bright particles)
    178178    answer=msgbox_uvmat('INPUT_Y-N','apply image rescaling function levels.m after sub_background');
    179     ParamOut.InputGUI.CheckLevelTransform=strcmp(answer,'Yes');
     179    ParamOut.ActionInput.CheckLevelTransform=strcmp(answer,'Yes');
    180180    return
    181181end
     
    190190
    191191%% Input preparation
    192 nbaver_ima=Param.InputGUI.SlidingSequenceLength;
     192nbaver_ima=Param.ActionInput.SlidingSequenceLength;
    193193NbSlice=Param.IndexRange.NbSlice;
    194194if ~isequal(NbSlice,1)
     
    225225OutputDir=[Param.OutputSubDir Param.OutputDirExt];
    226226
    227 if isequal(Param.InputGUI.CheckVolume,1)
     227if isequal(Param.ActionInput.CheckVolume,1)
    228228    step=1;
    229229else
    230230    step=nbfield_j;%case of bursts: the sliding background is shifted by the length of one burst
    231231end
    232 nbaver_ima=Param.InputGUI.SlidingSequenceLength;%number of images for the sliding background
     232nbaver_ima=Param.ActionInput.SlidingSequenceLength;%number of images for the sliding background
    233233nbaver=ceil(nbaver_ima/step);%number of bursts for the sliding background
    234234if isequal(floor(nbaver/2),nbaver)
     
    242242
    243243% calculate absolute brightness rank
    244 rank=floor(Param.InputGUI.BrightnessRankThreshold*nbaver_ima);
     244rank=floor(Param.ActionInput.BrightnessRankThreshold*nbaver_ima);
    245245if rank==0
    246246    rank=1;%rank selected in the sorted image series
     
    346346       
    347347        %write result file
    348         if Param.InputGUI.CheckLevelTransform
     348        if Param.ActionInput.CheckLevelTransform
    349349            C=levels(Acor);
    350350            imwrite(C,newname,'BitDepth',8); % save the new image
     
    395395                    newname=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1);
    396396                    %write result file
    397                     if Param.InputGUI.CheckLevelTransform
     397                    if Param.ActionInput.CheckLevelTransform
    398398                        C=levels(Acor);
    399399                        imwrite(C,newname,'BitDepth',8); % save the new image
     
    430430       
    431431        %write result file
    432         if Param.InputGUI.CheckLevelTransform
     432        if Param.ActionInput.CheckLevelTransform
    433433            C=levels(Acor);
    434434            imwrite(C,newname,'BitDepth',8); % save the new image
Note: See TracChangeset for help on using the changeset viewer.