source: trunk/src/transform_field/im_filter.m @ 40

Last change on this file since 40 was 40, checked in by sommeria, 14 years ago

-relabel_i_j added to the svn (relabel an image series with two indices)
-Menu projection Object added to uvmat, rationalizes the call of projection objects (to improve yet)
-get_plot_handles: modified in relationwith the Menu projection object
-mouse_down: corrected in relation with previous change in field transforms
-transform_field functions added to the svn
-set_object and keyboard_callback: cleaning

File size: 476 bytes
Line 
1function DataOut=im_filter(DataIn,Calib)
2np=20 %size ofthe filtering window
3%definition of the cos shape matrix filter
4ix=[1/2-np/2:-1/2+np/2];%
5del=np/3;
6%fct=exp(-(ix/del).^2);
7fct2=cos(ix/((np-1)/2)*pi/2);
8%Mfiltre=(ones(5,5)/5^2);
9Mfiltre=fct2'*fct2;
10Mfiltre=Mfiltre/(sum(sum(Mfiltre)));%normalize filter
11
12DataOut=DataIn; %default
13
14Atype=class(DataIn.A)% detect integer 8 or 16 bits
15DataOut.A=filter2(Mfiltre,DataIn.A);
16DataOut.A=feval(Atype,DataOut.A);
17 
Note: See TracBrowser for help on using the repository browser.