1 简介
读入给定的热红外图像,完成彩色图像灰度化;对步骤1中的灰色图像加噪,并采用不同的方法对不同的加噪图像去噪,使得去噪效果更佳;基于灰度图像中标准温度对照带,提取图像中各像素的温度值;
2 部分代码
function varargout = MainTempMonitor(varargin)
% MAINTEMPMONITOR MATLAB code for MainTempMonitor.fig
% MAINTEMPMONITOR, by itself, creates a new MAINTEMPMONITOR or raises the existing
% singleton*.
%
% H = MAINTEMPMONITOR returns the handle to a new MAINTEMPMONITOR or the handle to
% the existing singleton*.
%
% MAINTEMPMONITOR('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in MAINTEMPMONITOR.M with the given input arguments.
%
% MAINTEMPMONITOR('Property','Value',...) creates a new MAINTEMPMONITOR or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before MainTempMonitor_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to MainTempMonitor_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help MainTempMonitor
% Last Modified by GUIDE v2.5 26-Jun-2022 12:20:26
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @MainTempMonitor_OpeningFcn, ...
'gui_OutputFcn', @MainTempMonitor_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes during object creation, after setting all properties.
function Temp_CreateFcn(hObject, eventdata, handles)
% hObject handle to Temp (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes during object creation, after setting all properties.
function FigOri_CreateFcn(hObject, eventdata, handles)
% hObject handle to FigOri (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: place code in OpeningFcn to populate FigOri
3 仿真结果
4 参考文献
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。