资源简介
图像找茬游戏是时下非常流行的游戏之一, 人眼通过对比找出图像中差异较大的位置是一件较为有难度的事情,但是对于计算机来说精确找出图像差异却是一件简单的事情。本文利用图像之间的灰度差和色彩差寻找图像之间的差异,在图像做差的结果上进行阈值分割形成二值图像,对于二值图像采用形态学处理,首先使用膨胀腐蚀运算去除噪声和填补二值团块,然后利用连通域分析算法对图像中差异较大的位置进行精确的定位。最后通过多组实验进行算法参数调节,实验证明本文提出的图像找茬算法能有效的定位图像之间的差异。
代码片段和文件信息
function varargout = untitled(varargin)
% UNtitleD MATLAB code for untitled.fig
% UNtitleD by itself creates a new UNtitleD or raises the existing
% singleton*.
%
% H = UNtitleD returns the handle to a new UNtitleD or the handle to
% the existing singleton*.
%
% UNtitleD(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in UNtitleD.M with the given input arguments.
%
% UNtitleD(‘Property‘‘Value‘...) creates a new UNtitleD or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before untitled_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to untitled_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 untitled
% Last Modified by GUIDE v2.5 15-Mar-2016 16:00:18
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @untitled_OpeningFcn ...
‘gui_OutputFcn‘ @untitled_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 untitled is made visible.
function untitled_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 untitled (see VARARGIN)
% Choose default command line output for untitled
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes untitled wait for user response (see UIRESUME)
% uiwait(handles.figure1);
set(handles.axes1‘visible‘‘off‘)
set(handles.axes2‘visible‘‘off‘)
% --- Outputs from this function are returned to the command line.
function varargout = untitled_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;
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hobject eventdata handles)
% hobject handle t
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-10-10 15:39 源码\
目录 0 2016-04-13 09:14 源码\9829_find_difference\
文件 38437 2016-04-12 10:24 源码\9829_find_difference\3_0.JPG
文件 134328 2016-04-12 10:24 源码\9829_find_difference\4.jpg
文件 152883 2016-04-12 10:24 源码\9829_find_difference\4_0.jpg
文件 6110 2016-04-12 10:24 源码\9829_find_difference\unti
文件 4232704 2016-04-13 09:12 源码\matlab图像找茬设计与实现.doc
目录 0 2018-10-10 15:39 演示\
文件 12349416 2016-04-13 11:18 演示\9829录像.avi
文件 64 2018-10-10 16:34 说明.txt
目录 0 2018-10-10 15:38 需求\
文件 10240 2016-04-09 11:37 需求\功能需求说明.doc
相关资源
- matlab车牌定位识别,完整案例(基于
- 自动多阈值分割matlab程序
- 基于阈值分割的车牌定位识别的matl
- 论文研究-双阈值分割于本色布疵点检
- 最大类间方差阈值matlab程序
- matlab_模糊阈值分割法
- matlab迭代法自动阈值分割算法
- MATLAB自动多阈值分割
- 基于直方图的阈值分割的matlab实现
- 用matlab实现自适应图像阈值分割最大
- 基于MATLABGUI实现图像阈值分割处理的
- 用matlab实现基于灰度的阈值分割算法
- 自适应阈值分割matlab算法
- MATLAB自适应阈值分割代码
- 灰度图像的二维Otsu自动阈值分割法
- 基于OSTU的阈值分割算法研究
- 一维最大熵阈值分割
- Matlab分块Otsu阈值分割
- Matlab二维Otsu阈值分割
- 图像处理/图像分割实验/(自动)阈值
- 基于matlab的图像阈值分割算法
- OSTU多阈值分割MATLAB程序
- MATLAB实现图像找茬程序
- 利用MATLAB对图像进行灰度阈值分割,
- 阈值分割的matlab程序
- OTSU算法的matlab实现
- MATLAB图像自适应阈值分割
- DIP 包含二值化、canny算子边缘检测、
- 萤火虫算法寻找图像阈值分割的最优
- matlab实现阈值图像分割
评论
共有 条评论