毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 论文 >> 正文

红外技术探测隐蔽目标或森林火模拟源代码

更新时间:2010-12-20:  来源:毕业论文

红外技术探测隐蔽目标或森林火模拟源代码
function varargout = buried_object_detection(varargin)
% 全局变量
global im_1;
global hResult1;
global filename1;
global yh;
global N;
global M;
global ll_lev3;
global h;
global L;
global fenjieshishu;
global yuzhishishu;
% BURIED_OBJECT_DETECTION M-file for buried_object_detection.fig
%      BURIED_OBJECT_DETECTION, by itself, creates a new BURIED_OBJECT_DETECTION or raises the existing
%      singleton*.
%
%      H = BURIED_OBJECT_DETECTION returns the handle to a new BURIED_OBJECT_DETECTION or the handle to
%      the existing singleton*.
%
%      BURIED_OBJECT_DETECTION('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in BURIED_OBJECT_DETECTION.M with the given input arguments.
%原文请找腾讯752018766优,文-论'文.网http://www.youerw.com       BURIED_OBJECT_DETECTION('Property','Value',...) creates a new BURIED_OBJECT_DETECTION or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before buried_object_detection_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to buried_object_detection_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 buried_object_detection

% Last Modified by GUIDE v2.5 14-May-2010 14:56:37

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @buried_object_detection_OpeningFcn, ...
                   'gui_OutputFcn',  @buried_object_detection_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 just before buried_object_detection is made visible.
function buried_object_detection_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% varargin   command line arguments to buried_object_detection (see VARARGIN)

% Choose default command line output for buried_object_detection
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes buried_object_detection wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = buried_object_detection_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (see VARARGOUT);
% hObject    handle to figure
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure
varargout{1} = handles.output;

%% 加入背景图片
movegui(gcf,'center');
set(gcf,'name','红外技术探测隐蔽目标或森林火模拟系统','numbertitle','off')
% I=imread('D:\My Documents\MATLAB\buried_object_detection\hit.jpg');
% imshow(I);
% set(gca,'position',[0.165 0.085 0.666 0.495]) ;% -- 调整图片在GUI中所占有的空间
% set(gcf,'Color','b'); % 设置背景颜色


%% 红外探测地下目标验证实验
% --- Executes on button press in pushbutton1.
% 载入红外图像原文请找腾讯752018766优,文-论'文.网http://www.youerw.com
function pushbutton1_Callback(hObject, eventdata, handles)
%选择图片路径
[filename1,pathname1] = ...
uigetfile({'*.jpg';'*.bmp';'*.gif';'*.tif'},'选择实际拍摄的红外图片');
%合成路径+文件名
str = [pathname1 filename1];
%读取图片
 im=imread(str);
 im = rgb2gray(im);
 
global im_1;
global hResult1;
global filename1;
global yh;
global N;
global M;
global ll_lev3;
global h;
global L;
global fenjieshishu;
global yuzhishishu;

 im_1(1:230,1:256)=im(1:230,1:256);
 im_1(231:256,1:256)=im(230:-1:205,1:256);
% save temp im_1;1791

[1] [2] [3] [4] 下一页

红外技术探测隐蔽目标或森林火模拟源代码下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©youerw.com 优文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。