Changeset 1077 for trunk/src/uvmat.m


Ignore:
Timestamp:
Mar 20, 2020, 11:29:01 PM (4 years ago)
Author:
sommeria
Message:

various bug repair

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r1076 r1077  
    14151415end
    14161416
    1417 prompt = {'offset luminosity value in the absence of illumination';'smoothing width for the reference line (in pixels)'};
     1417prompt = {'offset luminosity value in the absence of illumination';'smoothing width for the reference line (in pixels)';...
     1418    'LIF Temperature Coeff1';'LIF Temperature Coeff2';'LIF Temperature Coeff3'};
    14181419    dlg_title = 'set the parameters for LIF';
    1419     num_lines= 2;
    1420     def     = { num2str(BlackOffset);num2str(RefLineWidth)};
     1420    num_lines= 5;
     1421    def     = { num2str(BlackOffset);num2str(RefLineWidth);'0';'0';'0'};
    14211422    answer = inputdlg(prompt,dlg_title,num_lines,def);
    14221423if isempty(answer)
     
    14251426    XmlData.LIFCalib.BlackOffset=str2double(answer{1}) ;% image value for black background, to be determined by taking images with a cover on the objective lens
    14261427    XmlData.LIFCalib.RefLineWidth=str2double(answer{2}) ;% smoothing width used for the reference line
     1428    XmlData.LIFCalib.TLIFCoeff=[str2double(answer{3}) str2double(answer{4}) str2double(answer{5})];
    14271429end
    14281430
     
    14431445XmlData.LIFCalib.Ray2Coord=LineData{2}.Coord;
    14441446XmlData.LIFCalib.RefLineCoord=LineData{3}.Coord;
     1447
     1448%% rescale the image
     1449[nby,nbx]=size(UvData.Field.A);
     1450x=linspace(UvData.Field.Coord_x(1),UvData.Field.Coord_x(2),nbx)-nbx/2;
     1451y=linspace(UvData.Field.Coord_y(1),UvData.Field.Coord_y(2),nby)-nby/2;
     1452[X,Y]=meshgrid(x,y);
     1453coeff_quad=0.15*4/(nbx*nbx);% image luminosity reduced by 10% at the edge
     1454UvData.Field.A=double(UvData.Field.A).*(1+coeff_quad*(X.*X+Y.*Y));
    14451455
    14461456%% display the current image in polar axes with origin at the  illumination source
Note: See TracChangeset for help on using the changeset viewer.