Changeset 1159 for trunk


Ignore:
Timestamp:
Jul 12, 2024, 4:12:28 PM (4 months ago)
Author:
sommeria
Message:

script delete rdvision updated, bug correctred in geometry_calib (case of color images)

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/geometry_calib.m

    r1152 r1159  
    992992else
    993993   %S=skewness(double(reshape(A,1,[])));
    994    A=double(A);
     994   A=double(sum(A,3));%sum of ther three components for color images
    995995   A=A-mean(mean(A));
    996    S=mean(mean(A.*A.*A))/(mean(mean(A.*A)))^1.5
     996   S=mean(mean(A.*A.*A))/(mean(mean(A.*A)))^1.5; %skewness used to istinguish white or black markers
    997997   grid_input.CheckWhite=sign(S);%propose white markers if image skewness>0, black markers otherwise
    998998end
  • trunk/src/script_delete_rdvision.m

    r1123 r1159  
    55%%%%%%%%%%%%%%  CHOOSE THE ROOT FOLDER %%%%%%%%%%
    66
    7 RootDir='DATA'
     7RootDir='1_DATA'
    88%RootFolder=fullfile('/fsnet/project/coriolis/2018/18JEVERB',RootDir);
    9 RootFolder=fullfile('/fsnet/project/edt/2021/21CORIOFARM',RootDir)
     9%RootFolder=fullfile('/fsnet/project/edt/2021/21CORIOFARM',RootDir)
     10RootFolder=fullfile('/fsnet/project/coriolis/2024/24PLUME',RootDir)
    1011%ParamFile=fullfile(RootFolder,'extract_param.xml');
    1112%Param=xml2struct(ParamFile);
     
    4445        ind_rdvision=[];
    4546        for isubsub=1:numel(ListNamesSubSub)
    46             if ~isempty(regexp(ListNamesSubSub{isubsub},'^2021-'))
     47            if ~isempty(regexp(ListNamesSubSub{isubsub},'^2024-'))
    4748                ind_rdvision=[ind_rdvision isubsub];%detect rdvision folders
    4849            end
     
    8485                if exist(ExtractFolder,'dir') && exist(PngFolder,'dir')
    8586                    filename_seq=fullfile(ExtractFolder,'im.seq');
     87                    try
    8688                    s=ini2struct(filename_seq);
    8789                    FileInfo=s.sequenceSettings;
     
    9092                    else
    9193                        status='bad seq file';
     94                    end
     95                    catch ME
     96                        disp(['error in ' filename_seq])
    9297                    end
    9398                    DirPng=dir(PngFolder);
Note: See TracChangeset for help on using the changeset viewer.