Ignore:
Timestamp:
Feb 27, 2013, 1:57:32 PM (11 years ago)
Author:
sommeria
Message:

clean the transform fcts

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 parameters
    2 % DataOut=phys(Data,CalibData) , transform one input field
    3 % [DataOut,DataOut_1]=phys(Data,CalibData,Data_1,CalibData_1), transform two input fields
    4 
     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 %%%%
    55% 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
    87
    98%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%------------------------------------------------------------------------
    1816function DataOut=phys(DataIn,XmlData,DataIn_1,XmlData_1)
     17%------------------------------------------------------------------------
     18
    1919% A FAIRE: 1- verifier si DataIn est une 'field structure'(.ListVarName'):
    2020% chercher ListVarAttribute, for each field (cell of variables):
     
    2525%            'D_i' if '.Role='vector_x,...',
    2626%              'scalar', else (thenno change except scale factor)
    27 %% set GUI config if DataIn='*'
     27
    2828DataOut=[];
    2929DataOut_1=[]; %default second  output field
Note: See TracChangeset for help on using the changeset viewer.