You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
727 B
Matlab

clear all;
close all;
clc;
ratio = 1.0829; % 其物理意义是截止频率,lambda*F# = ratio*d
MTF_static = 0.16; % 静态传函
MTF_defocus = 0.975; % 离焦
MTF_zg = 0.98; % 杂光
MTF_hp = 0.990; % 行频失配
MTF_plj = 0.964; % 偏流角
MTF_hot = 0.94; % 力热变形
MTF_gas = 0.8; % 大气
dp_push = 1; % 推扫方向的像移
Pic_origin = imread('C:\Users\ASUS\Desktop\MTF_simulation\MTF_simulation_input.png');
figure()
imshow(Pic_origin)
[MTF_onorbit_all_Np, MTF_onorbit_all, Pic_blurred] = MTF_simulation(ratio,MTF_static,MTF_defocus,MTF_zg,MTF_hp,MTF_plj,MTF_hot,MTF_gas,dp_push,Pic_origin);
figure()
imshow(uint8(Pic_blurred))
name_str2 = 'C:\Users\ASUS\Desktop\MTF_simulation\MTF_simulation_output.png';
imwrite(uint8(Pic_blurred),name_str2);