资源简介

一种基于超像素的图像分割程序,是cvpr13年文章的相应代码,可以学习下

资源截图

代码片段和文件信息

% This code is to reproduce the experiments reported in paper
% “Segmentation Using Superpixels: A Bipartite Graph Partitioning Approach“
% Zhenguo Li Xiao-Ming Wu and Shih-Fu Chang CVPR 2012
% {zgli xmwu sfchang}@ee.columbia.edu

clc;clear all; close all;

addpath ‘msseg‘
addpath ‘others‘
addpath ‘evals‘
addpath ‘algorithms‘;
addpath ‘Graph_based_segment‘

%%% set parameters for bipartite graph
para.alpha = 0.001; % affinity between pixels and superpixels
para.beta  =  20;   % scale factor in superpixel affinity
para.nb = 1; % number of neighbors for superpixels

% read numbers of segments used in the paper 
bsdsRoot = ‘E:\Coding\Misc\Segmentation\BSDS300‘;
fid = fopen(fullfile(‘results‘‘BSDS300‘‘Nsegs.txt‘)‘r‘);
Nimgs = 300; % number of images in BSDS300
[BS

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-07-08 22:13  CVPR12_SAS_code\
     目录           0  2012-06-27 17:05  CVPR12_SAS_code\algorithms\
     文件        1081  2012-06-27 14:42  CVPR12_SAS_code\algorithms\build_bipartite_graph.m
     文件        1006  2012-06-27 13:38  CVPR12_SAS_code\algorithms\make_superpixels.m
     文件         301  2012-05-18 18:46  CVPR12_SAS_code\algorithms\prune_knn.m
     文件        1416  2012-06-27 13:29  CVPR12_SAS_code\algorithms\set_parameters_oversegmentation.m
     文件        1016  2012-06-26 19:00  CVPR12_SAS_code\algorithms\Tcut.m
     文件         461  2012-06-27 15:01  CVPR12_SAS_code\algorithms\view_gt_segmentation.m
     文件         399  2012-05-15 16:21  CVPR12_SAS_code\algorithms\view_oversegmentation.m
     文件        1340  2012-06-27 15:44  CVPR12_SAS_code\algorithms\view_segmentation.m
     文件        3085  2012-06-27 20:57  CVPR12_SAS_code\demo_SAS_BSDS.m
     目录           0  2012-06-26 17:09  CVPR12_SAS_code\evals\
     文件        2214  2007-03-06 17:02  CVPR12_SAS_code\evals\compare_image_boundary_error.m
     文件        4879  2007-03-06 17:02  CVPR12_SAS_code\evals\compare_segmentations.m
     文件         777  2009-03-08 14:44  CVPR12_SAS_code\evals\evaluate_gt.m
     文件        1762  2012-03-02 18:49  CVPR12_SAS_code\evals\eval_bdry_Fmeasure.m
     文件         685  2012-06-26 17:09  CVPR12_SAS_code\evals\eval_segmentation.m
     文件         778  2009-11-07 15:17  CVPR12_SAS_code\evals\GCE.m
     文件         145  2003-12-26 15:46  CVPR12_SAS_code\evals\locallog.m
     文件        3073  2009-01-05 21:27  CVPR12_SAS_code\evals\Rand_index.m
     文件         957  2012-03-02 19:05  CVPR12_SAS_code\evals\seg2bdry.m
     文件        1347  2003-09-27 03:39  CVPR12_SAS_code\evals\VI.m
     目录           0  2012-06-27 21:10  CVPR12_SAS_code\Graph_based_segment\
     文件         113  2011-08-24 15:39  CVPR12_SAS_code\Graph_based_segment\compile.m
     文件        1940  2006-12-28 12:10  CVPR12_SAS_code\Graph_based_segment\convolve.h
     文件       17987  2006-12-28 12:09  CVPR12_SAS_code\Graph_based_segment\COPYING
     文件        1857  2006-12-28 12:10  CVPR12_SAS_code\Graph_based_segment\disjoint-set.h
     文件        2973  2006-12-28 12:10  CVPR12_SAS_code\Graph_based_segment\filter.h
     文件         602  2012-06-27 13:10  CVPR12_SAS_code\Graph_based_segment\gbis.m
     文件        2294  2006-12-28 12:10  CVPR12_SAS_code\Graph_based_segment\image.h
     文件        4926  2006-12-28 12:10  CVPR12_SAS_code\Graph_based_segment\imconv.h
............此处省略163个文件信息

评论

共有 条评论