Changeset 557


Ignore:
Timestamp:
Oct 19, 2012, 5:26:57 PM (12 years ago)
Author:
sommeria
Message:

functions updated to fit with new conventions

Location:
trunk/src/transform_field
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/transform_field/im_levels.m

    r71 r557  
    1 function DataOut=im_levels(DataIn,Calib)
     1function DataOut=im_levels(DataIn)
     2%% set GUI config: no action defined
     3DataOut=[];  %default  output field
     4if strcmp(DataIn,'*')
     5    return
     6end
    27%-----------------------------------------------
    38%parameters
  • trunk/src/transform_field/phys.m

    r545 r557  
    2525%            'D_i' if '.Role='vector_x,...',
    2626%              'scalar', else (thenno change except scale factor)
    27 %% set GUI config
     27%% set GUI config if DataIn='*'
    2828DataOut=[];
    2929DataOut_1=[]; %default second  output field
    3030if strcmp(DataIn,'*')
    3131    if isfield(XmlData,'GeometryCalib')&& isfield(XmlData.GeometryCalib,'CoordUnit')
    32         DataOut.CoordUnit=XmlData.GeometryCalib.CoordUnit;
     32        DataOut.CoordUnit=XmlData.GeometryCalib.CoordUnit;% states that the output is in unit defined by GeometryCalib, then erased all projection objects with different units
    3333    end
    3434    return
  • trunk/src/transform_field/remove_background.m

    r40 r557  
    1 function DataOut=remove_particles(DataIn,Calib)
     1function DataOut=remove_background(DataIn)
    22%-----------------------------------------------
     3%% set GUI config: no action defined
     4DataOut=[];  %default  output field
     5if strcmp(DataIn,'*')
     6    return
     7end
     8
    39%parameters
    410threshold=200
     
    915
    1016%BACKGROUND LEVEL
    11 Atype=class(DataIn.A)
     17Atype=class(DataIn.A);
    1218A=double(DataIn.A);
    1319Backg=zeros(size(A));
  • trunk/src/transform_field/remove_particles.m

    r40 r557  
    1 function DataOut=remove_particles(DataIn,Calib)
     1function DataOut=remove_particles(DataIn)
    22%-----------------------------------------------
     3%% set GUI config: no action defined
     4DataOut=[];  %default  output field
     5if strcmp(DataIn,'*')
     6    return
     7end
     8
    39%parameters
    4 threshold=200
     10threshold=200;
    511nblock_x=30;%size of image subblocks for analysis
    612nblock_y=30;
Note: See TracChangeset for help on using the changeset viewer.