function varargout = xiaobo_pinjie(varargin)
% XIAOBO_PINJIE MATLAB code for xiaobo_pinjie.fig
% XIAOBO_PINJIE, by itself, creates a new XIAOBO_PINJIE or raises the existing
% singleton*.
%
% H = XIAOBO_PINJIE returns the handle to a new XIAOBO_PINJIE or the handle to
% the existing singleton*.
%
% XIAOBO_PINJIE('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in XIAOBO_PINJIE.M with the given input arguments.
%
% XIAOBO_PINJIE('Property','Value',...) creates a new XIAOBO_PINJIE or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before xiaobo_pinjie_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to xiaobo_pinjie_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 xiaobo_pinjie
% Last Modified by GUIDE v2.5 24-Jan-2016 12:48:20
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @xiaobo_pinjie_OpeningFcn, ...
'gui_OutputFcn', @xiaobo_pinjie_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 xiaobo_pinjie is made visible.
function xiaobo_pinjie_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 xiaobo_pinjie (see VARARGIN)
% Choose default command line output for xiaobo_pinjie
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes xiaobo_pinjie wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = xiaobo_pinjie_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)
[name,path]=uigetfile({'*.jpg';'*.bmp';'gif'},'载入图像一');
if isequal(name,0)|isequal(path,0)
errordlg('没有选中文件噢','出错');
return;
else
f=imread([path,name]); %获取位置
axes(handles.axes1);%axes表示获取位置,这里选取的位置为axes1;
imshow(f); %显示图像
title('图像一');
guidata(hObject,handles) %更新结构体;
end
if(size(f,3)==3)
Y=rgb2gray(f);
% Y1=rgb2gray(g);
end
Y=double(Y);%矩阵数据类型不匹配,将数据类型进行转换后再运算。imread读入的图像是uint8数据类型
%Y1=double(Y1);
[m,n]=size(Y);
%~~~~~~~~~~~~~用Harr小波分析取概貌~~~~~~~~~~~~~~~~~~~
e=1/(2^(1/2));
Ld=e*[1,1]';
Hd=e*[-1,1]';
%~~~~~~第一幅图的小波变换
y=xbbh(Y,m,n,Ld,Ld);
Y01=xbbh(Y,m,n,Ld,Hd);
Y10=xbbh(Y,m,n,Hd,Ld);
Y11=xbbh(Y,m,n,Hd,Hd);
%~~~~~~第二幅图的小波变换
%y1=xbbh(Y1,m,n,Ld,Ld);
%y01=xbbh(Y1,m,n,Ld,Hd);
%y10=xbbh(Y1,m,n,Hd,Ld);
%y11=xbbh(Y1,m,n,Hd,Hd);
% [m,n]=size(y);
pho1=[y,Y01;Y10,Y11];
%pho2=[y1,y01;y10,y11];
axes(handles.axes2)
imshow(uint8(pho1));
title('图像一的小波分解');
save('y'); %保存变量
%figure(2)
%imshow(uint8(pho2));%imshow时要加上uint8转化成无符号8位整型才能显示
%xlabel('图像二的小波分解');
% hObject handle to pushbutton1 (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 pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
[name,path]=uigetfile({'*.jpg';'*.bmp';'gif'},'载入图像二');
if isequal(name,0)|isequal(path,0)
errordlg('没有选中文件噢','出错');
return;
else
g=imread([path,name]); %获取位置
axes(handles.axes3);%axes表示获取位置,这里选取的位置为axes1;
imshow(g); %显示图像
title('图像二');
save('g'); %保存变量
guidata(hObject,handles) %更新结构体;
end
if(size(g,3)==3)
%Y=rgb2gray(f);
Y1=rgb2gray(g);
end
%Y=double(Y);%矩阵数据类型不匹配,将数据类型进行转换后再运算。imread读入的图像是uint8数据类型
Y1=double(Y1);
[m,n]=size(Y1);
%~~~~~~~~~~~~~用Harr小波分析取概貌~~~~~~~~~~~~~~~~~~~
e=1/(2^(1/2));
Ld=e*[1,1]';
Hd=e*[-1,1]';
%~~~~~~第一幅图的小波变换
%y=xbbh(Y,m,n,Ld,Ld);
%Y01=xbbh(Y,m,n,Ld,Hd);
%Y10=xbbh(Y,m,n,Hd,Ld);
%Y11=xbbh(Y,m,n,Hd,Hd);
%~~~~~~第二幅图的小波变换
y1=xbbh(Y1,m,n,Ld,Ld);
y01=xbbh(Y1,m,n,Ld,Hd);
y10=xbbh(Y1,m,n,Hd,Ld);
y11=xbbh(Y1,m,n,Hd,Hd);
% [m,n]=size(y);
%pho1=[y,Y01;Y10,Y11];
pho2=[y1,y01;y10,y11];
axes(handles.axes4)
imshow(uint8(pho2));
title('图像二的小波分解');
save('y1'); %保存变量
% 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)
web www.wobishe.com
load('y');load('y1');
%~~~~~~~~~调用图像匹配函数寻找图像匹配点~~~~~~~~~~~
[p1,N1]=pipei(y,y1);
%~~~~~~~~~~~~~~~~拼接~~~~~~~~~~~~~~~~~~~~~
msgbox('具体联系Q609553134')
% 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 Untitled_1_Callback(hObject, eventdata, handles)
% 截图
SnapImage();
% hObject handle to Untitled_1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
该资源内项目源码是个人的课程设计,代码都测试ok,都是运行成功后才上传资源,答辩评审平均分达到96分,放心下载使用! ## 项目备注 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.md文件(如有),仅供学习参考, 切勿用于商业用途。 该资源内项目源码是个人的课程设计,代码都测试ok,都是运行成功后才上传资源,答辩评审平均分达到96分,放心下载使用! ## 项目备注 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用! 2、本项目适合计算机相关专业(如计科、人工智能、通信工程、自动化、电子信息等)的在校学生、老师或者企业员工下载学习,也适合小白学习进阶,当然也可作为毕设项目、课程设计、作业、项目初期立项演示等。 3、如果基础还行,也可在此代码基础上进行修改,以实现其他功能,也可用于毕设、课设、作业等。 下载后请首先打开README.md文件(如有),仅供学习参考, 切勿用于商业用途。
资源推荐
资源详情
资源评论
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![mp4](https://img-home.csdnimg.cn/images/20210720083504.png)
收起资源包目录
![package](https://csdnimg.cn/release/downloadcmsfe/public/img/package.f3fc750b.png)
![folder](https://csdnimg.cn/release/downloadcmsfe/public/img/folder.005fa2e5.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/UNKNOWN.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/JPG.png)
![file-type](https://csdnimg.cn/release/download/static_files/pc/images/minetype/PNG.png)
共 39 条
- 1
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/6b2ea2d510824682ac2af676104b9caf_abackcab.jpg!1)
毕业小助手
- 粉丝: 2402
- 资源: 5556
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- 基于LoRa的主从机农田监测系统原理图
- PTC Creo View 是由 PTC 公司开发的一款专业的三维可视化软件,专为工程设计和制造领域而设计
- torchvision中CIFAR10数据集
- 山东大学面向对象编程考试内容的详细归纳
- 基于LoRa的主从机农田监测系统代码
- 计算机组成原理第六版课后习题可能涉及的一些主要内容和概念
- Visual Studio 最新版一键安装包(何时安装何时就可以最新版)
- Matplotlib - Matplotlib tutorial - Nicolas P. Rougier
- XlineSoft PHPRunner 是一款功能强大且灵活的 PHP 代码生成器,专为快速开发和部署数据库驱动的 Web 应用
- c语言之俄罗斯方块123
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)