Changeset 574 for trunk/src/transform_field/phys.m
- Timestamp:
- Feb 27, 2013, 1:57:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/transform_field/phys.m
r557 r574 1 %'phys': transforms image ( px) to real world (phys) coordinates using geometric calibration parameters2 % DataOut=phys(Data,CalibData) , transform one input field 3 % [DataOut,DataOut_1]=phys(Data,CalibData,Data_1,CalibData_1), transform two input fields4 1 %'phys': transforms image (Unit='pixel') to real world (phys) coordinates using geometric calibration parameters. It acts if the input field contains the tag 'CoordTUnit' with value 'pixel' 2 3 %------------------------------------------------------------------------ 4 %%%% Use the general syntax for transform fields %%%% 5 5 % OUTPUT: 6 % DataOut: structure representing the first field in phys coordinates 7 % DataOut_1: structure representing the second field in phys coordinates 6 % DataOut: output field structure 8 7 9 8 %INPUT: 10 % Data: structure of input data 11 % with fields .A (image or scalar matrix), AX, AY 12 % .X,.Y,.U,.V, .DjUi 13 % .ZIndex: index of plane in multilevel case 14 % .CoordType='phys' or 'px', The function ACTS ONLY IF .CoordType='px' 15 % CalibData: structure containing calibration parameters or a subtree Calib.GeometryCalib =calibration data (tsai parameters) 16 % Data_1, CalibData_1: same as Data, CalibData for the second field. 17 9 % DataIn: first input field structure 10 % XmlData: first input parameter structure, 11 % .GeometryCalib: substructure of the calibration parameters 12 % DataIn_1: optional second input field structure 13 % XmlData_1: optional second input parameter structure 14 % .GeometryCalib: substructure of the calibration parameters 15 %------------------------------------------------------------------------ 18 16 function DataOut=phys(DataIn,XmlData,DataIn_1,XmlData_1) 17 %------------------------------------------------------------------------ 18 19 19 % A FAIRE: 1- verifier si DataIn est une 'field structure'(.ListVarName'): 20 20 % chercher ListVarAttribute, for each field (cell of variables): … … 25 25 % 'D_i' if '.Role='vector_x,...', 26 26 % 'scalar', else (thenno change except scale factor) 27 %% set GUI config if DataIn='*' 27 28 28 DataOut=[]; 29 29 DataOut_1=[]; %default second output field
Note: See TracChangeset
for help on using the changeset viewer.