Changeset 782 for trunk/src/geometry_calib.m
- Timestamp:
- Jun 3, 2014, 8:10:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/geometry_calib.m
r773 r782 916 916 path_UVMAT=fileparts(path_uvmat); %path to UVMAT 917 917 addpath(fullfile(path_UVMAT,'transform_field')) 918 Data.ListVarName={' AY','AX','A'};919 Data.VarDimName={' AY','AX',{'AY','AX'}};918 Data.ListVarName={'Coord_y','Coord_x','A'}; 919 Data.VarDimName={'Coord_y','Coord_x',{'Coord_y','Coord_x'}}; 920 920 if ndims(A)==3 921 921 A=mean(A,3); 922 922 end 923 923 Data.A=A-min(min(A)); 924 Data. AY=[npxy(1)-0.5 0.5];925 Data. AX=[0.5 npxy(2)];924 Data.Coord_y=[npxy(1)-0.5 0.5]; 925 Data.Coord_x=[0.5 npxy(2)]; 926 926 Data.CoordUnit='pixel'; 927 927 Calib.GeometryCalib=GeometryCalib; … … 929 929 rmpath(fullfile(path_UVMAT,'transform_field')) 930 930 Amod=DataOut.A;% current image expressed in 'phys' coord 931 Rangx=DataOut. AX;% x coordinates of first and last pixel centres in phys932 Rangy=DataOut. AY;% y coordinates of first and last pixel centres in phys931 Rangx=DataOut.Coord_x;% x coordinates of first and last pixel centres in phys 932 Rangy=DataOut.Coord_y;% y coordinates of first and last pixel centres in phys 933 933 if CalibData.grid.CheckWhite 934 934 Amod=double(Amod);%case of white grid markers: will look for image maxima
Note: See TracChangeset
for help on using the changeset viewer.