资源简介
用MATLAB读lean.jpg图片,进行DCT变换以压缩,然后IDCT读出图片。有GUI.
代码片段和文件信息
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
function varargout = one(varargin)
% ONE M-file for one.fig
% ONE by itself creates a new ONE or raises the existing
% singleton*.
%
% H = ONE returns the handle to a new ONE or the handle to
% the existing singleton*.
%
% ONE(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in ONE.M with the given input arguments.
%
% ONE(‘Property‘‘Value‘...) creates a new ONE or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before one_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to one_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 one
% Last Modified by GUIDE v2.5 17-Apr-2009 09:19:32
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @one_OpeningFcn ...
‘gui_OutputFcn‘ @one_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 one is made visible.
function one_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 one (see VARARGIN)
% Choose default command line output for one
handles.output = hobject;
% Update handles structure
%--------------init data
handles.coefficient=1;
handles.field=1;
handles.quantization=1;
handles.a=1;
%------------------------------------------------------
guidata(hobject handles);
% UIWAIT makes one wait for user response (see UIRESUME)
% uiwait(handles.figure1);
%--------------------------------------------------------------------------
%--------------------------------------------------------------------------
% --- Outputs from this function are returned to the command line.
function varargout = one_OutputFcn(hobject eventdata handles)
% varargout cell arr
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 517471 2009-04-17 12:01 dct\one.exe
文件 25226 2009-04-17 12:00 dct\one.m
文件 6878 2009-04-15 00:14 dct\read.fig
目录 0 2009-05-30 10:30 dct
----------- --------- ---------- ----- ----
549575 4
- 上一篇:战胜MATLAB必做的50道题
- 下一篇:p文件,MATLAB的
相关资源
- p文件,MATLAB的
- 战胜MATLAB必做的50道题
- WCDMA matlab代码
- MATLAB编写共轭梯度
- MRF matlab源码
- matlab链码提取算法
- CRC循环冗余校验的matlab仿真程序
- 曲线旋转得到曲面的MATLAB程序
- matlab 数字图像对比度拉伸算法
- Hough变换实现椭圆及圆检测(MATLAB)
- MATLAB实现混沌图像加密仿真程序
- 数字图像处理radon matlab变换算法代码
- 主动轮廓模型算法matlab程序
- MATLAB 实现各类常见算法
- GMM(matlab源码)
- 数字信号处理 理论算法与实现 胡广书
- 基于BP神经网络的盲均衡算法 C程序(
- 激光谐振腔课程设计(matlab)exe及源
- Lozi混沌系统相关分析的MATLAB程序
- (7,4)循环码-信道编码的matlab仿真
- 一个用MATLAB编写的用于估计信号谐波
- kalman工具箱 用matlab编写 包附全部函数
- 基于harris算法的角点检测matlab原代码
- 偏最小二乘分析matlab工具包
- 基于matlab的窗函数法FIR数字滤波器设
- 北邮Matlab实验报告和代码
- 图像匹配matlab源程序sift算法
- matlab实现摄像机标定
- matlab编写的量子遗传算法
- 图像降噪Matlab代码
评论
共有 条评论