Ignore:
Timestamp:
Jan 30, 2015, 8:37:03 PM (9 years ago)
Author:
sommeria
Message:

bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/civ2vel_3C.m

    r840 r862  
    1 %'civ2vel_3C': combine velocity fields from two camerasto get three velocity components
     1%'civ2vel_3C': combine velocity fields from two cameras to get three velocity components
    22%------------------------------------------------------------------------
    33% function ParamOut=civ2vel_3C(Param)
     
    116116     tsaiA=XmlData{1}.GeometryCalib;
    117117 else
    118      msgbox_uvmat('ERROR','no geometric calibration available for image A')
     118     disp_uvmat('ERROR','no geometric calibration available for image A',checkrun)
    119119     return
    120120 end
     
    122122     tsaiB=XmlData{2}.GeometryCalib;
    123123 else
    124      msgbox_uvmat('ERROR','no geometric calibration available for image B')
     124     disp_uvmat('ERROR','no geometric calibration available for image B',checkrun)
    125125     return
    126126 end
    127127[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
    128128
    129 %% grid of physical positions
     129%% grid of physical positions (given by projection plane)
     130if ~Param.CheckObject
     131         disp_uvmat('ERROR','a projection plane with interpolation is needed',checkrun)
     132     return
     133end
     134ObjectData=Param.ProjObject;
     135
    130136[x,y]=meshgrid(ObjectData.RangeX(1):ObjectData.DX:ObjectData.RangeX(2),ObjectData.RangeY(1):ObjectData.DY:ObjectData.RangeY(2));
     137z=zeros(size(x));
     138[Field,ParamOut,errormsg] = read_field(FileName,FileType,ParamIn,num)
    131139%camera coordinates:initialisation 2 cameras
    132140NbCamera=2;
     
    178186        %% transform the input field (e.g; phys) if requested (no transform involving two input fields)
    179187            %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 coordinates
    185         Xu=xc./zc;
    186         Yu=yc./zc;
    187188        Data{iview}=phys(Data{iview},XmlData{iview});
    188189       
Note: See TracChangeset for help on using the changeset viewer.