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)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于MATLAB的小波变换图像拼接技术GUI版源码 ----- 毕业设计,课程设计,项目源码均经过助教老师测试,运行无误,欢迎下载交流 ----- 下载后请首先打开README.md文件(如有),某些链接可能需要魔法打开。 ----- 毕业设计,课程设计,项目源码均经过助教老师测试,运行无误,欢迎下载交流 ----- 下载后请首先打开README.md文件(如有),某些链接可能需要魔法打开。
资源推荐
资源详情
资源评论
收起资源包目录
基于MATLAB的小波变换图像拼接技术GUI版源码.zip (39个子文件)
Program
H_1图小波分解结果.jpg 15KB
f.mat 223KB
xiaobo_pinjie.fig 14KB
b1.jpg 19KB
y.mat 1.22MB
nonoise.m 959B
b2.jpg 19KB
xԭͼ.jpg 113KB
s图拼接结果.jpg 70KB
z_2.jpg 64KB
zԭͼ.jpg 159KB
x_2.jpg 66KB
H_2图小波分解结果.jpg 19KB
s_1.jpg 63KB
H_2.jpg 33KB
H图小波重构结果.jpg 25KB
H图直接拼接小波分解结果.jpg 21KB
L_1.jpg 40KB
供演示图.jpg 254KB
xbbh.m 556B
Z图拼接结果.jpg 49KB
chonggou.m 2KB
L图拼接结果.jpg 29KB
g.mat 546KB
Lԭͼ.jpg 78KB
Hԭͼ.jpg 106KB
pipei.m 1KB
x_1.jpg 47KB
xiaobo_pinjie.m 6KB
H_1.jpg 23KB
pipei.asv 1KB
s_2.jpg 78KB
y1.mat 1.66MB
z_1.jpg 49KB
x图拼接结果.jpg 56KB
H图小波去噪后曲线.jpg 26KB
nonoise.asv 1009B
L_2.jpg 72KB
运行截图1.png 245KB
共 39 条
- 1
资源评论
Lau师傅
- 粉丝: 142
- 资源: 107
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 新年倒计时网页基础教程
- Python编程初学者快速入门基础教程
- 新年倒计时编程基础教程
- 峰会报告自动化处理基础教程
- UE4UE5游戏开发基础教程:从零开始构建你的世界
- DataStructure-拓扑排序
- Front-end-learning-to-organize-notes-新年主题资源
- QPython Plus-Python资源
- baidulite-新年主题资源
- CnOCR-Python资源
- Golang_Puzzlers-新年主题资源
- Python开源扫雷游戏PyMine-Python资源
- Golang_Puzzlers-新年主题资源
- pyporter-Python资源
- Golang_Puzzlers-新年主题资源
- mulan-rework-Python资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功