|
Oblique effect filter (OEF) 三维曲面--MATLAB代码:
- % create a discrete FIR digital oblique effect filter(OEF)
- clc,clear,close all
- f = -60:1:60;
- cita = -60:1:60;
- [F,CITA] = meshgrid(f,cita);
- r = 0.348; % 3.48;
- lamda = 13.57;
- for i=1:size(F,1)
- for j=1:size(F,2)
- if (abs(F(i,j))>r)
- OEF(i,j) = 1-( 1-exp( -(abs(F(i,j))-r)/lamda ) ) * sin( 2*CITA(i,j)*pi/180 ) * sin( 2*CITA(i,j)*pi/180 );
- else
- OEF(i,j) = 1;
- end
- end
- end
- mesh(F,CITA,OEF);
- axis tight;
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|