Last change
on this file since 40 was
40,
checked in by sommeria, 15 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 | |
---|
1 | function DataOut=im_filter(DataIn,Calib)
|
---|
2 | np=20 %size ofthe filtering window
|
---|
3 | %definition of the cos shape matrix filter
|
---|
4 | ix=[1/2-np/2:-1/2+np/2];%
|
---|
5 | del=np/3;
|
---|
6 | %fct=exp(-(ix/del).^2);
|
---|
7 | fct2=cos(ix/((np-1)/2)*pi/2);
|
---|
8 | %Mfiltre=(ones(5,5)/5^2);
|
---|
9 | Mfiltre=fct2'*fct2;
|
---|
10 | Mfiltre=Mfiltre/(sum(sum(Mfiltre)));%normalize filter
|
---|
11 |
|
---|
12 | DataOut=DataIn; %default
|
---|
13 |
|
---|
14 | Atype=class(DataIn.A)% detect integer 8 or 16 bits
|
---|
15 | DataOut.A=filter2(Mfiltre,DataIn.A);
|
---|
16 | DataOut.A=feval(Atype,DataOut.A);
|
---|
17 | |
---|
Note: See
TracBrowser
for help on using the repository browser.