资源简介
完整的贝叶斯抠图matlab实现代码,经测试可运行,文档包含了图片资源,代码没有注释
代码片段和文件信息
function varargout = app(varargin)
% APP M-file for app.fig
% APP by itself creates a new APP or raises the existing
% singleton*.
%
% H = APP returns the handle to a new APP or the handle to
% the existing singleton*.
%
% APP(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in APP.M with the given input arguments.
%
% APP(‘Property‘‘Value‘...) creates a new APP or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before app_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to app_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 app
% Last Modified by GUIDE v2.5 17-Feb-2009 13:58:39
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @app_OpeningFcn ...
‘gui_OutputFcn‘ @app_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 app is made visible.
function app_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 app (see VARARGIN)
% Choose default command line output for app
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes app wait for user response (see UIRESUME)
% uiwait(handles.figure1);
init(handles);
% --- Outputs from this function are returned to the command line.
function varargout = app_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;
% --- Initialization function
function init(handles)
global appdata;
appdata.simg=[];
appdata.timg=[];
appdata.trimap=[];
appdata.matte=[];
appdata.result=[];
% clear axes
imshow([]‘Parent‘handles.source
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 66896 2009-02-17 14:01 BayesianMatting\app.fig
文件 9112 2009-03-01 00:47 BayesianMatting\app.m
文件 4412 2010-10-16 19:47 BayesianMatting\bayesmat.asv
文件 4314 2010-10-17 12:20 BayesianMatting\bayesmat.m
文件 1290 2010-10-17 15:50 BayesianMatting\cluster_OrachardBouman.asv
文件 1290 2009-03-01 00:40 BayesianMatting\cluster_OrachardBouman.m
文件 1076 2009-02-28 15:42 BayesianMatting\getTrimap.m
文件 707917 2008-10-13 14:24 BayesianMatting\images\bag\plasticbag.png
文件 3641 2008-10-13 16:11 BayesianMatting\images\bag\trimap.png
文件 28965 2009-02-28 19:16 BayesianMatting\images\bear\background.jpg
文件 35194 2009-02-16 15:27 BayesianMatting\images\bear\input.jpg
..A.SH. 11776 2009-03-01 15:17 BayesianMatting\images\bear\Thumbs.db
文件 13495 2009-02-28 17:35 BayesianMatting\images\bear\trimap.png
文件 295387 2009-02-28 18:02 BayesianMatting\images\dog\background.png
文件 34833 2009-02-16 15:25 BayesianMatting\images\dog\input.jpg
..A.SH. 12288 2009-03-01 15:24 BayesianMatting\images\dog\Thumbs.db
文件 21108 2009-02-28 17:51 BayesianMatting\images\dog\trimap.png
文件 221812 2009-02-28 14:10 BayesianMatting\images\gandalf\background-small.png
文件 35619 2009-02-28 14:03 BayesianMatting\images\gandalf\background.jpg
文件 214290 2009-02-28 14:08 BayesianMatting\images\gandalf\input-small.png
文件 1930 2010-10-17 16:35 BayesianMatting\images\gandalf\mytrimap.png
..A.SH. 14848 2009-03-17 01:02 BayesianMatting\images\gandalf\Thumbs.db
文件 8458 2009-02-28 15:13 BayesianMatting\images\gandalf\trimap.png
文件 407195 2009-02-28 19:43 BayesianMatting\images\knockout\background.png
文件 340715 2009-02-28 18:53 BayesianMatting\images\knockout\input.png
文件 14325 2009-02-28 18:59 BayesianMatting\images\knockout\trimap.png
文件 195701 2009-02-28 17:02 BayesianMatting\images\lighthouse\background.png
文件 234118 2009-02-18 12:12 BayesianMatting\images\lighthouse\input.png
文件 2571 2009-02-18 12:12 BayesianMatting\images\lighthouse\trimap.png
文件 492621 2009-02-28 16:40 BayesianMatting\images\me\background.png
............此处省略36个文件信息
相关资源
- 《卡尔曼滤波原理及应用-MATLAB仿真》
- 基于BP神经网络的验证码识别matlab
- 杜勇-数字通信同步技术的MATLAB与FPG
- 数值分析及其Matlab实现
- DSP程序开发:MATLAB调试及直接目标代
- MATLAB优化算法案例分析与应用进阶篇
- DPM算法实现:voc-release5(Win7+matlab20
- 基于稀疏表示和正则化的图像超分辨
- 0积分 系统辨识与自适应控制MATLAB仿真
- 图像处理matlab道路小车跟踪
- 全面详解LTE MATLAB建模、仿真与实现
- adaboost 的matlab代码
- 《信号与系统》MATLAB教程.pdf
- 卷积神经网络完成程序matlab.zip
- matlab图像检索
- 卷积神经网络经典代码
- 现代通信系统第二版MATLAB版) 包括全
- 卡尔曼滤波 Matlab程序
- 稀疏编码matlab 教程
- 系统辨识资料大全(matlab系统辨识工
- 化学计量学方法及MATLAB实现
- MATLAB Neural Network Toolbox官方教程
- Inverse Synthetic Aperture Radar Imaging with
- matlab GUI设计
- 雷达压制干扰matlab程序
- 系统辨识,使用者的理论
- MATLAB仿真林飞、杜欣编著.pdf
- 基于HMM的语音识别MATLAB代码
- 关于均衡的MATLAB程序合集
- 数字滤波器的MATLAB与FPGA实现代码
评论
共有 条评论