-
大小: 580KB文件类型: .zip金币: 2下载: 0 次发布日期: 2021-06-07
- 语言: 其他
- 标签: Graph-Based Image Segmentation
资源简介
Efficient Graph-Based Image Segmentation论文的实现代码,以及给了一个测试样例,在Linux下运行通过

代码片段和文件信息
/*
Copyright (C) 2006 Pedro Felzenszwalb
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License or
(at your option) any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not write to the Free Software
Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
*/
#include
#include
#include
#include
#include
#include “segment-image.h“
int main(int argc char **argv) {
if (argc != 6) {
fprintf(stderr “usage: %s sigma k min input(ppm) output(ppm)\n“ argv[0]);
return 1;
}
float sigma = atof(argv[1]);
float k = atof(argv[2]);
int min_size = atoi(argv[3]);
printf(“loading input image.\n“);
image *input = loadPPM(argv[4]);
printf(“processing\n“);
int num_ccs;
image *seg = segment_image(input sigma k min_size &num_ccs);
savePPM(seg argv[5]);
printf(“got %d components\n“ num_ccs);
printf(“done! uff...thats hard work.\n“);
return 0;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-09-03 15:03 FelzenSegment\
文件 2009 2013-05-31 23:33 FelzenSegment\convolve.h
文件 18326 2013-05-31 23:33 FelzenSegment\COPYING
文件 1857 2013-05-31 23:33 FelzenSegment\disjoint-set.h
文件 3073 2013-05-31 23:33 FelzenSegment\filter.h
文件 2395 2013-05-31 23:33 FelzenSegment\image.h
文件 5103 2013-05-31 23:33 FelzenSegment\imconv.h
文件 1714 2013-05-31 23:33 FelzenSegment\imutil.h
文件 361 2013-05-31 23:33 FelzenSegment\Makefile
文件 1796 2013-05-31 23:33 FelzenSegment\misc.h
文件 5464 2013-05-31 23:33 FelzenSegment\pnmfile.h
文件 807 2013-05-31 23:33 FelzenSegment\README
文件 25874 2014-09-03 15:02 FelzenSegment\regions.jpg
文件 478515 2014-09-02 10:44 FelzenSegment\regions.PPM
文件 2191 2013-05-31 23:33 FelzenSegment\segment-graph.h
文件 4298 2013-05-31 23:33 FelzenSegment\segment-image.h
文件 1460 2013-05-31 23:33 FelzenSegment\segment.cpp
文件 106805 2007-01-09 19:42 FelzenSegment\test.jpg
文件 478515 2014-08-27 17:45 FelzenSegment\test.PPM
文件 17920 2014-09-03 15:02 FelzenSegment\Thumbs.db
- 上一篇:一个DPCM的源代码
- 下一篇:AdaBoost讲解
相关资源
- 基于MFC扩展CListCtrl子项显示图片并叠
- img写盘工具(roadkil‘s diskimage) v1.
- cximage的linux版本源码
- Cocos2d-x 3.x 头像选择器功能扩展Image
- PCNN TOOLBOX
- 双立方插值实现
- 图像处理 分析与机器视觉 源码
- 脉冲耦合神经网络工具箱PCNN-toolbox
- Image2Lcd+汉字取模,TFT助手
- PNG图片转Delphi中Image.Picture.data代码-工
- CImage 强大的图像处理类库
- 微软内部镜像封装工具:CDIMAGE 2.54 (版
- Modeling of rapeseed at maturity stage using 3
- hand_segmentation
- ImageWatch2019.vsix
- Image Resizer
- swift-PSImageEditors一个简而至美的图片编
- ImageConverter(万能图片转换器)2009免
- ZedBoard REV_D的BOOT.BIN、devicetree.dtb、l
- Image Super-Resolution Via Sparse Representati
- Qt Openglwidget 显示图片纹理贴图
- 2-d and 3-d Image Registration: for Medical Re
- Universalimageloader
- stb_image库
- PCL点云库SACSegmentation用法demo
- Markov random fields for vision and image proc
- 《图像分析中的马尔可夫随机场模型
- NeatImagePS MAC
- 实验三 ImageView和Switch的使用
- HDR_Code_Image.rar for opencv
评论
共有 条评论