资源简介
基于熵率的超像素分割代码
代码片段和文件信息
%//
%// MATLAB wrapper for Entropy Rate Superpixel Segmentation
%//
%// This software is used to demo the entropy rate superpixel
%// segmentation algorithm (ERS). The detailed of the algorithm can be
%// found in
%//
%// Ming-Yu Liu Oncel Tuzel Srikumar Ramalingam Rama Chellappa
%// “Entropy Rate Superpixel Segmentation“ CVPR2011.
%//
%// Copyright 2011 Ming-Yu Liu
%
close all;clear all;clc
disp(‘Entropy Rate Superpixel Segmentation Demo‘);
%%
%//=======================================================================
%// Input
%//=======================================================================
%// These images are duplicated from the Berkeley segmentation dataset
%// which can be access via the URL
%// http://www.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/
%// We use them only for demonstration purposes.
% img = imread(‘148089.jpg‘);
img = imread(‘242078.jpg‘);
%// Our implementation can take both color and grey scale images.
grey_img = double(rgb2gray(img));
%%
%//=======================================================================
%// Superpixel segmentation
%//=======================================================================
%// nC is the target number of superpixels.
nC = 300;
%// Call the mex function for superpixel segmentation\
%// !!! Note that the output label starts from 0 to nC-1.
t = cputime;
lambda_prime = 0.5;sigma = 5.0;
conn8 = 1; % flag for using 8 connected grid graph (default setting).
[labels] = mex_ers(double(img)nC);
%[labels] = mex_ers(double(img)nClambda_primesigma);
%[labels] = mex_ers(double(img)nClambda_primesigmaconn8);
% grey scale iamge
%[labels] = mex_ers(grey_imgnC);
%[labels] = mex_ers(grey_imgnClambda_primesigma);
%[labels] = mex_ers(grey_imgnClambda_primesigmaconn8);
fprintf(1‘Use %f sec. \n‘cputime-t);
fprintf(1‘\t to divide the image into %d superpixels.\n‘nC);
%// You can also specify your preference parameters. The parameter values
%// (lambda_prime = 0.5 sigma = 5.0) are chosen based on the experiment
%// results in the Berkeley segmentation dataset.
%// lambda_prime = 0.5; sigma = 5.0;
%// [labels] = mex_ers(grey_imgnClambda_primesigma);
%// You can also use 4 connected-grid graph. The algorithm uses 8-connected
%// graph as default setting. By setting conn8 = 0 and running
%// [labels] = mex_ers(grey_imgnClambda_primesigmaconn8)
%// the algorithm perform segmentation uses 4-connected graph. Note that
%// 4 connected graph is faster.
%%
%//=======================================================================
%// Output
%//=======================================================================
[height width] = size(grey_img);
%// Compute the boundary map and superimpose it on the input image in the
%// green channel.
%// The seg2bmap function is directly duplicated from the Berkeley
%// Segmentation dataset which can be accessed via
%// http://www.eecs.berkeley.edu/Research/Projects/CS/vision/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-08-18 22:06 EntropyRateSuperpixel-master\
文件 48 2015-08-18 22:06 EntropyRateSuperpixel-master\.gitignore
文件 96491 2015-08-18 22:06 EntropyRateSuperpixel-master\148089.jpg
文件 83046 2015-08-18 22:06 EntropyRateSuperpixel-master\242078.jpg
目录 0 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\
文件 2031 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\Edge.h
文件 4003 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\Image.h
文件 6173 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\ImageIO.h
文件 2127 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCCInput.cpp
文件 1849 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCClustering.h
文件 2299 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCDisjointSet.cpp
文件 1911 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCDisjointSet.h
文件 2458 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCEdge.h
文件 3079 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCFunctions.cpp
文件 2029 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCFunctions.h
文件 1418 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCInput.h
文件 2955 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCInputImage.h
文件 3761 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCLazyGreedy.cpp
文件 1337 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCLazyGreedy.h
文件 1880 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCOutput.cpp
文件 1426 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCOutput.h
文件 1854 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MERCOutputImage.h
文件 6310 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MHeap.h
文件 3145 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MList.h
文件 5560 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MMFunctions.h
文件 4224 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\MSubmodularHeap.h
文件 4944 2015-08-18 22:06 EntropyRateSuperpixel-master\ERS\mex_ers.cpp
文件 3921 2015-08-18 22:06 EntropyRateSuperpixel-master\README.txt
文件 4023 2015-08-18 22:06 EntropyRateSuperpixel-master\demo.m
文件 692 2015-08-18 22:06 EntropyRateSuperpixel-master\demoERS.py
文件 599 2015-08-18 22:06 EntropyRateSuperpixel-master\erspy.exp
............此处省略13个文件信息
- 上一篇:域名ip批量ping工具
- 下一篇:清华大学-914-2019-真题回忆版.pdf
相关资源
- Corel.All.Products.Universal.Keygens.by.CORE.v
-
openla
yers案例demo详细注释 - 投影转换工具—Albers等面积.
- 圆形字体文件
- 研华采集卡驱动 DAQNavi_SDK_Drivers_4.1.
- UpdateVersion 修改exedll文件版本源码
- superset二次开发数据字典
- Protocol Buffers 2.5.0Windows版
- understand_scitools.txt
- EPLAN 2.6顿卡补丁version.dll复制到安装目
- electronic letters期刊的模板格式
- understand5.952 for linux破解安装教程
- GraphTraversal.zip
- MIPI Alliance Standard for Display Pixel Inter
- 101 Great Answers to the Toughest Interview Qu
- Superset权限整理
- peersim-pastry
- persistencegoing_11028842.rar
- libemgucv-windows-universal-gpu-2.4.9.1847
-
NFCLogical li
nk Control Protocol version 1. - EmersonCT TDS-PA01 SM-RPOFIBUS GSD 文件
- Universal Maps Downloader 9.x Keygen
- Low conversion-loss fourth subharmonic mixers
- Elsevier - Pattern Recognition Letters模板
- KerServer OPCUA配置
- InTheHand.Net.Personal+BlueTooth4,蓝牙开发
- stvd 4.1.2 汉化版ST Visual Develop Version
- System.Management.Automation.dll
- PersonnelManage.rar
- ROS 传感器消息及RVIZ可视化Laserscan和
评论
共有 条评论