Changeset 1077 for trunk/src/uvmat.m
- Timestamp:
- Mar 20, 2020, 11:29:01 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1076 r1077 1415 1415 end 1416 1416 1417 prompt = {'offset luminosity value in the absence of illumination';'smoothing width for the reference line (in pixels)'}; 1417 prompt = {'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'}; 1418 1419 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'}; 1421 1422 answer = inputdlg(prompt,dlg_title,num_lines,def); 1422 1423 if isempty(answer) … … 1425 1426 XmlData.LIFCalib.BlackOffset=str2double(answer{1}) ;% image value for black background, to be determined by taking images with a cover on the objective lens 1426 1427 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})]; 1427 1429 end 1428 1430 … … 1443 1445 XmlData.LIFCalib.Ray2Coord=LineData{2}.Coord; 1444 1446 XmlData.LIFCalib.RefLineCoord=LineData{3}.Coord; 1447 1448 %% rescale the image 1449 [nby,nbx]=size(UvData.Field.A); 1450 x=linspace(UvData.Field.Coord_x(1),UvData.Field.Coord_x(2),nbx)-nbx/2; 1451 y=linspace(UvData.Field.Coord_y(1),UvData.Field.Coord_y(2),nby)-nby/2; 1452 [X,Y]=meshgrid(x,y); 1453 coeff_quad=0.15*4/(nbx*nbx);% image luminosity reduced by 10% at the edge 1454 UvData.Field.A=double(UvData.Field.A).*(1+coeff_quad*(X.*X+Y.*Y)); 1445 1455 1446 1456 %% display the current image in polar axes with origin at the illumination source
Note: See TracChangeset
for help on using the changeset viewer.