Changeset 862 for trunk/src/series/civ2vel_3C.m
- Timestamp:
- Jan 30, 2015, 8:37:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ2vel_3C.m
r840 r862 1 %'civ2vel_3C': combine velocity fields from two cameras to get three velocity components1 %'civ2vel_3C': combine velocity fields from two cameras to get three velocity components 2 2 %------------------------------------------------------------------------ 3 3 % function ParamOut=civ2vel_3C(Param) … … 116 116 tsaiA=XmlData{1}.GeometryCalib; 117 117 else 118 msgbox_uvmat('ERROR','no geometric calibration available for image A')118 disp_uvmat('ERROR','no geometric calibration available for image A',checkrun) 119 119 return 120 120 end … … 122 122 tsaiB=XmlData{2}.GeometryCalib; 123 123 else 124 msgbox_uvmat('ERROR','no geometric calibration available for image B')124 disp_uvmat('ERROR','no geometric calibration available for image B',checkrun) 125 125 return 126 126 end 127 127 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 128 128 129 %% grid of physical positions 129 %% grid of physical positions (given by projection plane) 130 if ~Param.CheckObject 131 disp_uvmat('ERROR','a projection plane with interpolation is needed',checkrun) 132 return 133 end 134 ObjectData=Param.ProjObject; 135 130 136 [x,y]=meshgrid(ObjectData.RangeX(1):ObjectData.DX:ObjectData.RangeX(2),ObjectData.RangeY(1):ObjectData.DY:ObjectData.RangeY(2)); 137 z=zeros(size(x)); 138 [Field,ParamOut,errormsg] = read_field(FileName,FileType,ParamIn,num) 131 139 %camera coordinates:initialisation 2 cameras 132 140 NbCamera=2; … … 178 186 %% transform the input field (e.g; phys) if requested (no transform involving two input fields) 179 187 %camera coordinates 180 xc=R(1)*Xphys+R(2)*Yphys+R(3)*Zphys+Calib.Tx_Ty_Tz(1);181 yc=R(4)*Xphys+R(5)*Yphys+R(6)*Zphys+Calib.Tx_Ty_Tz(2);182 zc=R(7)*Xphys+R(8)*Yphys+R(9)*Zphys+Calib.Tx_Ty_Tz(3);183 184 %undistorted image coordinates185 Xu=xc./zc;186 Yu=yc./zc;187 188 Data{iview}=phys(Data{iview},XmlData{iview}); 188 189
Note: See TracChangeset
for help on using the changeset viewer.