% --- Executes on button press in pushbutton2.
% 载入与红外图像相应的可见光图像
function pushbutton2_Callback(hObject, eventdata, handles)
global im_1;
global hResult1;
global filename1;
global yh;
global N;
global M;
global ll_lev3;
global h;
global L;
global fenjieshishu;
global yuzhishishu;
%选择图片路径
[filename,pathname] = ...
uigetfile({'*.jpg';'*.bmp';'*.gif';'*.tif'},'选择与红外图像相应的可见光图像');
%合成路径+文件名
str = [pathname filename];
%读取图片
im=imread(str);
figure(hResult1);
subplot(2,2,2),imshow(im,[]);
title('实拍对应的可见光图像','FontName','隶书','FontSize',16,'color',[0 0 1]);
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton3.
% 载入带温度示意的图像
function pushbutton3_Callback(hObject, eventdata, handles)
%选择图片路径
[filename,pathname] = ...
uigetfile({'*.jpg';'*.bmp';'*.gif';'*.tif'},'选择带温度示意的图像');
global im_1;
global hResult1;
global filename1;
global yh;
global N;
global M;
global ll_lev3;
global h;
global L;
global fenjieshishu;
global yuzhishishu;
%合成路径+文件名
str = [pathname filename];
%读取图片原文请找腾讯752018766优,文-论'文.网http://www.youerw.com
im=imread(str);
figure(hResult1);
subplot(2,2,3), imshow(im,[]);
title('温度示意图像','FontName','隶书','FontSize',16,'color',[0 0 1]);
% hObject handle to pushbutton3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% 从输入参数得到分角层数
function edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global im_1;
global hResult1;
global filename1;
global yh;
global N;
global M;
global ll_lev3;
global h;
global L;
global fenjieshishu;
global yuzhishishu;
fenjieshishu = str2double(get(hObject,'String'));
fenjieshishu = fenjieshishu;
% Hints: get(hObject,'String') returns contents of edit2 as text
% str2double(get(hObject,'String')) returns contents of edit2 as a double
%从输入参数得到阈值系数
function edit3_Callback(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global im_1;