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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.