-
大小: 580KB文件类型: .zip金币: 1下载: 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讲解
相关资源
- IMDrops Image Tools 3.6汉化版(图像小工具
- Ascgen2-2.0.0汉化版(图像ASCII生成器.
- imageware 13破解文件
- 译文_Single Image Haze Removal Using Dark Ch
- Qt之生成png/jpg/bmp格式图片
- 安卓ROM system.img 解包与打包工具unya
- O2S.Components.PDFRender4NET.dll 真正无水印
- 淘淘商城taotao-image-server.7z文件
- mean shift segmentation
- ImageNet_mini数据集链接
- O2S.Components.PDFRender4NET.pdf2image.zip
- Image2Lcd v3.2 注册机
- Legacy Image Effects.unitypackage
- 一种QImage加载大图片的解决方案
- QT3显示图片小程序
- PrintImage.exe是一个调用打印机后台打印
- 数字图像处理实验项目_Laboratory Proj
- windows虚拟打印开发设计
- LegacyImageEffects资源包.zip
- FreeImage库
- 添加运动(motion blur)与去运动模糊(
- ImageJ用户手册中文版
- ImageProcessor
- IMAGE Transmitter 2宾得联机拍摄软件安装
- CImage类打开和保存jpeg、bmp、gif和png格
- delphi TImage 增加支持 png 图片格式 TP
- miniImagenet_download百度云链接
-
VC 中使用ba
se64编解码图片 -
gsnap.tar.gz linux从fr
amebuffer获取image源 - Image2lcd2.9以及注册码
评论
共有 条评论