Changeset 574
 Timestamp:
 Feb 27, 2013, 1:57:32 PM (11 years ago)
 Location:
 trunk/src/transform_field
 Files:

 3 added
 4 deleted
 3 edited
 1 moved
Legend:
 Unmodified
 Added
 Removed

trunk/src/transform_field/FFT2_detrend.m
r532 r574 1 % 'FFT': calculate and display 2D spectrum of the input scalar 2 % GUI_input=FFT(hget_field) 3 % 1 % 'FFT2_detrend': calculate the 2D spectrum of the input scalar after removing the linear trend 2 3 % 4 %%%% Use the general syntax for transform fields with a single input %%%% 4 5 % OUTPUT: 5 % GUI_input: option for display in the GUI get_field6 % 6 % DataOut: output field structure 7 7 8 %INPUT: 8 % hget_field: handles of the GUI get_field 9 % 10 9 % DataIn: first input field structure 10 % 11 11 function DataOut=FFT2_detrend(DataIn) 12 % % set GUI config12 % 13 13 DataOut=[]; 14 14 if strcmp(DataIn,'*') 
trunk/src/transform_field/ima_filter.m
r570 r574 1 function DataOut=im_filter(DataIn,Calib) 2 np=20 %size ofthe filtering window 1 % 'ima_filter': lowpass filtr of an image (builtin filtering parameter) 2 3 % 4 %%%% Use the general syntax for transform fields with a single input %%%% 5 % OUTPUT: 6 % DataOut: output field structure 7 8 %INPUT: 9 % DataIn: first input field structure 10 % 11 function DataOut=ima_filter(DataIn) 12 np=20 %size of the filtering window 3 13 %definition of the cos shape matrix filter 4 14 ix=[1/2np/2:1/2+np/2];% 
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 
trunk/src/transform_field/phys_polar.m
r567 r574 1 %'phys_polar': transforms image (Unit='pixel') to polar (phys) coordinates using geometric calibration parameters 2 3 % 4 %%%% Use the general syntax for transform fields %%%% 5 % OUTPUT: 6 % DataOut: output field structure 7 % .X=radius, .Y=azimuth angle, .U, .V are radial and azimuthal velocity components 8 9 %INPUT: 10 % DataIn: first input field structure 11 % XmlData: first input parameter structure, 12 % .GeometryCalib: substructure of the calibration parameters 13 % DataIn_1: optional second input field structure 14 % XmlData_1: optional second input parameter structure 15 % .GeometryCalib: substructure of the calibration parameters 1 16 % transform image coordinates (px) to polar physical coordinates 2 17 %[DataOut,DataOut_1]=phys_polar(varargin) … … 11 26 % Data_1: second input field (not mandatory) 12 27 % CalibData_1= calibration parameters for the second field 13 14 function [DataOut,DataOut_1]=phys_polar(varargin) 28 % 29 function DataOut=phys_polar(DataIn,XmlData,DataIn_1,XmlData_1) 30 % 15 31 Calib{1}=[]; 16 32 if nargin==2nargin==4
Note: See TracChangeset
for help on using the changeset viewer.