Changeset 574 for trunk/src


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

clean the transform fcts

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 %%%%
    45% OUTPUT:
    5 % GUI_input: option for display in the GUI get_field
    6 %
     6% DataOut:   output field structure
     7
    78%INPUT:
    8 % hget_field: handles of the GUI get_field
    9 %
    10 
     9% DataIn:  first input field structure
     10%------------------------------------------------------------------------
    1111function DataOut=FFT2_detrend(DataIn)
    12 %% set GUI config
     12%------------------------------------------------------------------------
    1313DataOut=[];
    1414if 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': low-pass 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%------------------------------------------------------------------------
     11function DataOut=ima_filter(DataIn)
     12np=20 %size of the filtering window
    313%definition of the cos shape matrix filter
    414ix=[1/2-np/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 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
  • 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
    116% transform image coordinates (px) to polar physical coordinates
    217%[DataOut,DataOut_1]=phys_polar(varargin)
     
    1126% Data_1:  second input field (not mandatory)
    1227% CalibData_1= calibration parameters for the second field
    13 
    14 function [DataOut,DataOut_1]=phys_polar(varargin)
     28%------------------------------------------------------------------------
     29function DataOut=phys_polar(DataIn,XmlData,DataIn_1,XmlData_1)
     30%------------------------------------------------------------------------
    1531Calib{1}=[];
    1632if nargin==2||nargin==4
Note: See TracChangeset for help on using the changeset viewer.