【图像处理】图像与音乐播放matlab系统

简介: 【图像处理】图像与音乐播放matlab系统

 1 简介

数字图像处理技术(Digital Image Processing)指的是所输入的图像被转换为一种数字信号形式,并且利用计算机对其进行相应处理的技术.目前,数字图像处理技术广泛应用于农业生产过程,医学诊断,科学研究,航空航天领域以及军事制导等领域.该技术能够对图像进行大量快速的处理,再现性好,处理精度高,具有很高的适用范围. 为方便用户更好地使用数字图像处理技术,本文应用MATLAB工具开发的数字图像处理应用系统,可为用户提供数字图像旋转缩放功能。

2 部分代码

function varargout = Imgproc(varargin)% IMGPROC MATLAB code for Imgproc.fig%      IMGPROC, by itself, creates a new IMGPROC or raises the existing%      singleton*.%%      H = IMGPROC returns the handle to a new IMGPROC or the handle to%      the existing singleton*.%%      IMGPROC('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in IMGPROC.M with the given input arguments.%%      IMGPROC('Property','Value',...) creates a new IMGPROC or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before Imgproc_OpeningFcn gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to Imgproc_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 Imgproc% Last Modified by GUIDE v2.5 04-Jul-2012 23:55:05% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = struct('gui_Name',       mfilename, ...                   'gui_Singleton',  gui_Singleton, ...                   'gui_OpeningFcn', @Imgproc_OpeningFcn, ...                   'gui_OutputFcn',  @Imgproc_OutputFcn, ...                   'gui_LayoutFcn',  [] , ...                   'gui_Callback',   []);if nargin && ischar(varargin{1})    gui_State.gui_Callback = str2func(varargin{1});endif 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 Imgproc is made visible.function Imgproc_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 Imgproc (see VARARGIN)% Choose default command line output for Imgproc%--------------------------画白板及初始化------------------------ handles.board=imread('whiteboard.jpg');imshow(handles.board);handles.pex=Pexe();handles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Imgproc wait for user response (see UIRESUME)% uiwait(handles.figure1);% --------------------------------------------------------------------% --------------------------------------------------------------------% --- Outputs from this function are returned to the command line.function varargout = Imgproc_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 structurevarargout{1} = handles.output;% --------------------------------------------------------------------% -------------------载入图像回调函数----------------------------------------% --- Executes on button press in pushbutton_load.function pushbutton_load_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton_load (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA) [filename,pathname]=uigetfile({'*.jpg;*.png',...    '可以打开的文件';},'选定图片','MultiSelect','off');     fullpath=fullfile(pathname,filename);     handles.addr=fullpath;     Temp=imread(handles.addr);     handles.pex.getdata(Temp);     [x,y,z]=size(Temp);     handles.board=combo(handles.board,handles.pex.data);     imshow(handles.board);     guidata(hObject,handles);% --------------------------------------------------------------------      % ------------------载入图像创建函数----------------------------------% --- Executes during object creation, after setting all properties.function pushbutton_load_CreateFcn(hObject, eventdata, handles)% hObject    handle to pushbutton_load (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    empty - handles not created until after all CreateFcns calledhandles.pushbutton_load=hObject;guidata(hObject,handles);    % --------------------------------------------------------------------  % -------------------图像信息------------------------------------------% --- Executes on button press in pushbutton_info.function pushbutton_info_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton_info (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)info=imfinfo(handles.addr);msgbox({'路径及名称';info.Filename;' ';...        '修改时间';info.FileModDate;' ';...        '文件大小';int2str(info.FileSize);' ';...        '文件格式';info.Format;' ';...        '图像高度';int2str(info.Height);' ';...        '图像宽度';int2str(info.Width);' ';...         '位深';int2str(info.BitDepth);' '},...         '原图信息');guidata(hObject,handles);% --------------------------------------------------------------------% ------------------撤销按钮----------------------------------------% --- Executes on button press in pushbutton_revoke.function pushbutton_revoke_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton_revoke (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)%axes(handles.axes1);    %global T%imshow(T);%handles.img=T;%guidata(hObject,handles);% --------------------------------------------------------------------% --------------------------------------------------------------------     %-------------------图层合成函数--------------  f

3 仿真结果

image.gif编辑

4 参考文献

[1]李寅, 李小红, 金建. 基于MATLAB图像处理系统的开发与实现[C]// 全国第21届计算机技术与应用学术会议(CACIS·2010)暨全国第2届安全关键技术与应用学术会议论文集. 2010.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

5 代码下载


相关文章
|
1月前
|
机器学习/深度学习 数据采集 人工智能
m基于深度学习网络的手势识别系统matlab仿真,包含GUI界面
m基于深度学习网络的手势识别系统matlab仿真,包含GUI界面
38 0
|
1月前
|
机器学习/深度学习 算法 计算机视觉
基于yolov2深度学习网络的火焰烟雾检测系统matlab仿真
基于yolov2深度学习网络的火焰烟雾检测系统matlab仿真
|
1月前
|
机器学习/深度学习 算法 计算机视觉
m基于深度学习网络的性别识别系统matlab仿真,带GUI界面
m基于深度学习网络的性别识别系统matlab仿真,带GUI界面
28 2
|
2月前
|
机器学习/深度学习 算法 数据可视化
python/matlab图像去雾/去雨综述
python/matlab图像去雾/去雨综述
36 0
|
29天前
|
算法
m基于OFDM+QPSK和LDPC编译码以及MMSE信道估计的无线图像传输matlab仿真,输出误码率,并用图片进行测试
MATLAB2022a仿真实现了无线图像传输的算法,包括OFDM、QPSK调制、LDPC编码和MMSE信道估计。OFDM抗频率选择性衰落,QPSK用相位表示二进制,LDPC码用于前向纠错,MMSE估计信道响应。算法流程涉及编码、调制、信道估计、均衡、解码和图像重建。MATLAB代码展示了从串行数据到OFDM信号的生成,经过信道模型、噪声添加,再到接收端的信道估计和解码过程,最终计算误码率。
20 1
|
1月前
|
机器学习/深度学习 并行计算 算法
m基于深度学习网络的瓜果种类识别系统matlab仿真,带GUI界面
m基于深度学习网络的瓜果种类识别系统matlab仿真,带GUI界面
30 0
|
1天前
|
文字识别 算法 计算机视觉
图像倾斜校正算法的MATLAB实现:图像倾斜角检测及校正
图像倾斜校正算法的MATLAB实现:图像倾斜角检测及校正
10 0
|
25天前
|
机器学习/深度学习 算法
m基于深度学习的64QAM调制解调系统相位检测和补偿算法matlab仿真
MATLAB 2022a仿真实现了基于深度学习的64QAM相位检测和补偿算法,有效应对通信中相位失真问题。通过DNN进行相位检测和补偿,降低解调错误。核心程序生成随机信号,模拟AWGN信道,比较了有无相位补偿的误码率,结果显示补偿能显著提升性能。
25 8
|
1月前
|
机器学习/深度学习 算法
m基于深度学习的32QAM调制解调系统相位检测和补偿算法matlab仿真
m基于深度学习的32QAM调制解调系统相位检测和补偿算法matlab仿真
26 1
|
1月前
|
机器学习/深度学习 数据采集 算法
m基于深度学习网络的花朵种类识别系统matlab仿真,包含GUI界面
m基于深度学习网络的花朵种类识别系统matlab仿真,包含GUI界面
30 6