|
|
|
|
clear all;
|
|
|
|
|
close all;
|
|
|
|
|
clc;
|
|
|
|
|
|
|
|
|
|
[ratio,MTF_static,MTF_defocus,MTF_zg,MTF_hp,MTF_plj,MTF_hot,MTF_gas,dp_push] = readinput_MTF();
|
|
|
|
|
|
|
|
|
|
% <20><>ȡ<EFBFBD><C8A1>ǰ<EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>·<EFBFBD><C2B7>
|
|
|
|
|
currentFilePath = mfilename('fullpath');
|
|
|
|
|
|
|
|
|
|
% <20><><EFBFBD>ļ<EFBFBD>·<EFBFBD><C2B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><C4BC>е<EFBFBD>·<EFBFBD><C2B7>
|
|
|
|
|
[currentFolderPath, ~, ~] = fileparts(currentFilePath);
|
|
|
|
|
|
|
|
|
|
Pic_origin = imread('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 = 'MTF_simulation_output.png';
|
|
|
|
|
imwrite(uint8(Pic_blurred),name_str2);
|
|
|
|
|
|
|
|
|
|
%<25><>MTF_onorbit_all_Np<4E><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵд<D6B5><D0B4>output_result(1).txt<78><74>
|
|
|
|
|
dlmwrite('output_result(1).txt',MTF_onorbit_all_Np,'delimiter',' ');
|
|
|
|
|
|
|
|
|
|
%<25><>MTF_onorbit_all<6C><6C><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵд<D6B5><D0B4>output_result(2).txt<78><74>
|
|
|
|
|
dlmwrite('output_result(2).txt',MTF_onorbit_all,'delimiter','\t');
|
|
|
|
|
|