Ignore:
Timestamp:
May 27, 2010, 7:25:58 PM (14 years ago)
Author:
sommeria
Message:

FFT: improved to deal with NaN data
merge_proj: corrected to reproduce dt if unique
uvmat.fig: tooltip corrected
plot_field: bug for isocontour corrected,
im_filter: cleaning
phys_polar: spatial derivative included (still to check)
set_obeject.fig: minor correction
struct2nc: comments improved
uvmat: button NB implemented
read_civxdata: error message improved

File:
1 edited

Legend:

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

    r40 r93  
    1111
    1212DataOut=DataIn; %default
    13 
    1413Atype=class(DataIn.A)% detect integer 8 or 16 bits
    15 DataOut.A=filter2(Mfiltre,DataIn.A);
    16 DataOut.A=feval(Atype,DataOut.A);
     14if numel(size(DataIn.A))==3
     15    DataOut.A=filter2(Mfiltre,sum(DataIn.A,3));%filter the input image, after summation on the color component (for color images)
     16    DataOut.A=uint16(DataOut.A); %transform to 16 bit images
     17else
     18    DataOut.A=filter2(Mfiltre,DataIn.A)
     19    DataOut.A=feval(Atype,DataOut.A);%transform to the initial image format
     20end
    1721 
Note: See TracChangeset for help on using the changeset viewer.