Code

注意事项: These resources might need a password to be opened. Please supply your name, institute, and positions to get the password. Click Google form or Wenjuan to do this. The source code is free for research and education use only. Please cite our paper if you use any part of our source code or data in your research.

Source code

We open-source all papers by default, except for a few of them supported by commercial companies with NDA (non-disclosure agreement). Thus, we stop updating the following list. Please go to the publication page for the source code.

  1. C++:  Salient Object Detection: A Discriminative Regional Feature Integration Approach, IJCV, 2017. [project] [bib]
  2. C++: HFS: Hierarchical Feature Selection for Efficient Image Segmentation. ECCV, 2016. [project][bib]
  3. C++ & Matlab: Salient Object Detection: A Benchmark, IEEE TIP, 2015. [project]
  4. C++ & CUDA: Struck: Structured output tracking with kernels, IEEE TPAMI, 2016. [pdf]
  5. C++ & CUDA: SemanticPaint: Interactive 3D Labeling and Learning at your Fingertips, ACM TOG 2015. [project]
  6. C++: DenseCut: Densely Connected CRFs for Realtime GrabCut, CGF 2015. [project] (I didn’t get enough time to reorganize the code. This is an initial version code without careful comments and organization.)
  7. C++ & CUDA: A Framework for the Volumetric Integration of Depth Images, arxiv eprint, 2014. [project]
  8. C++: ‘BING: Binarized Normed Gradients for Objectness Estimation at 300fps’, IEEE CVPR 2014. [project] [bib][readme]
  9. C++: Efficient Salient Region Detection with Soft Image Abstraction”, IEEE ICCV 2013. [project] [bib]
  10. C++(speech recognition part): “ImageSpirit: Verbal Guided Image Parsing”, ACM TOG, 2014, [bib] [project]。 Full code from Github.
  11. C++: “Global Contrast based Salient Region Detection”, IEEE TPAMI 2015. [project] [FAQs] [bib]
  12. C++: “Curve Structure Extraction for Cartoon Images” [Pdf] [bib]
  13. Executable 和 C++: “A Shape-Preserving Approach to Image Resizing”. CGF 2009. [project] [bib]
  14. Commercial version (神笔小Q, powered by QQ实验室) for our paper “Sketch2Photo: Internet Image Montage“, ACM TOG, 2009. [bib]
  15. Matlab: “Connectedness of Random Walk Segmentation”, IEEE TPAMI 2009. [bib]

License

The code is released under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License for NonCommercial use only. Any commercial use should get formal permission first.

Data

  • COD10K (Baidu w3up| Google ) (2.25G): Camouflaged Object Detection, CVPR, 2020.
  • SIP1K (Baidu pan fetch code: 46w8 | Google drive )]: Rethinking RGB-D Salient Object Detection: Models, Data Sets, and Large-Scale Benchmarks, TNNLS, 2020. (Human-centered RGB-D salient object detection)
  • DAVSOD (Baidu  [fetch code: ivzo]| Google)]: Shifting More Attention to Video Salient Object Detection, CVPR, 2019. (Video Salient Object Detection)
  • SOC6K (TestSet GT) [Object-level]|[Instance-level]
  • SOC6K ([730.2MB] Baidu | Google): Salient Objects in Clutter: Bringing Salient Object Detection to the Foreground,  ECCV, 2018. (First one largest instance-level salient object detection dataset with high-quality rich annotations, e.g., object level, instance level, and image-level annotations. ) [project page][bib].
  • aNYU: attributes augmented NYU dataset published with our CVPR 2014 paper “Dense Semantic Image Segmentation with Objects and Attributes” (Please follow the instructions on the project page for getting unzip password).
  • THUR15K (787MB): Salient object region labeling (annotated at pixel accuracy if exist such a salient object) for 15000 non-selected internet images, divided into five groups according to the keywords used to download them. Please cite our paper [BIB] if you use it. We also provide a Matlab file of Fig. 7(b) for easier comparison.
  • MSRA10K: Pixel accurate salient object labeling for 10000 images from the MSRA dataset.
  • PASCAL VOC annotations: Unfortunately, the XML format used in one of the most widely used benchmark datasets (PASCAL VOC) does not compatible with OpenCV. Here is a YML version of PASCAL VOC annotations (VOC 2007), which could be read by OpenCV directly.

Patents

International patents: (Espacenet)

  1. Method and Apparatus for Detecting Salient Object in Image, Qibin Hou, Mingming Cheng, Wei Bai, Xunyi Zhou, US20200143194
  2. Image processing method and image processing device, Shi-Min Hu, Ming-Ming Cheng, Guo-Xin Zhang, Niloy J. Mitra, Xiang Ruan, US20120288189, EP2523165, CN102779338A, JP2012243313A
  3. Method for calculating image visual saliency based on color histogram and overall contrast, Shi-Min Hu, Ming-Ming Cheng, Guo-Xin Zhang, WO 2012122682, PCT/CN2011/000690
  4. Method for detecting similar units based on outline belt graph, Shi-Min Hu, Ming-Ming Cheng, Fang-Lue Zhang, WO 2011131029, CN 101833668

Chinese patents (企知道, 中国专利公告):

  1. 程明明,姜鹏涛,张长彬,侯淇彬,曹洋,基于在线注意力累积的挖掘目标物体区域的方法,申请号:201910715341.X,申请日:2019-08-05。
  2. 杨巨峰,夏爽,冀晓东,陈松,程明明,一种基于多序列MRI的多发性骨髓瘤病灶的分割系统,申请号:201910582883.4,申请日:2019-07-01。
  3. 杨巨峰,梁杰,程明明,一种基于正交元空间的多模态图像增强方法,申请号:201910571058.4,申请日:2019-06-28。
  4. 范登平;程明明;张钊,一种基于深度图过滤器的显著性物体检测方法,申请号:201910524475.3,申请日:2019-06-18。
  5. 程明明,杨巨峰,伍小平,展翅,一种基于注意力机制和多层次卷积特征的植物病虫害识别方法,申请号:201910404278.8,申请日:2019-05-16。
  6. 杨巨峰,程明明,孙晓晓,陈丽怡,一种基于对抗神经网络和海量噪声数据的图片分类方法,申请号:201910358002.0,申请日:2019-04-30。
  7. 程明明,范登平,林铮,吴文海,一种基于注意力转移机制的视频显著性物体检测方法,申请号:201910347420.X,申请日:2019-04-28。
  8. 程明明,刘云,吴宇寰,基于多路割的弱监督实例分割方法,申请号:201910347532.5,申请日:2019-04-28。
  9. 杨巨峰,程明明,陈丽怡,折栋宇,孙晓晓,一种基于上下文信息的艺术画风格分类方法,申请号:201910311265.6,申请日:2019-04-18。
  10. 程明明,高尚华,赵凯,可集成到神经网络架构中的图像多尺度信息提取方法及应用,申请号:201910242489.6,申请日:2019-03-28。
  11. 程明明,赵凯,一种基于互斥正则化技术的人脸识别方法,申请号:201910235306.8,申请日:2019-03-27。
  12. 程明明,陈林卓,李炫毅,基于空间注意力机制的点云特征提取方法,申请号:201910235177.2,申请日:2019-03-27。
  13. 程明明,刘云,基于多层次上下文信息融合的显著性物体检测方法,申请号:201811547592.3,申请日:2018-12-18。
  14. 杨巨峰,程明明,折栋宇,王恺,一种基于深度度量学习的图像情感分类与检索算法,申请号:201810173303.1, 申请日:2018-03-02。
  15. 刘姜江,程明明,侯淇彬,范登平,谭永强,一种基于深度网络的多类型任务通用的检测方法,申申请号:201810173285.7,申请日:2018-03-02。
  16. 杨巨峰,程明明,梁杰,王恺,基于三元组的自动估计类数的子空间聚类方法,申请号:201810170826.0,申请日:2018-03-01。
  17. 杨巨峰,程明明,孙延,梁杰,王恺,一种基于多视角多特征的图像印象性预测方法,申请号:201810171247.8,申请日:2018-03-01。
  18. 范登平,程明明,曹洋,吴宇寰,任博,一种基于二进制的前景图相似度评测方法,申请号:201810171102.8 申请日:2018-03-01。
  19. 杨巨峰,程明明,孙晓晓,王恺,一种基于迭代采样和一对多标签修正的Web图像训练卷积神经网络方法,申请号:201810171017.1,申请日:2018-03-01。
  20. 侯淇彬,程明明,白蔚,周迅溢,图像显著性物体检测方法和装置,申请号:201710488970.4,申请日:2017年6月26日。
  21. 程明明,刘笑畅,白蔚,苗磊,一种图片处理方法及设备,申请号:201710602208.4,申请日期:2017年7月24日。
  22. 程明明,刘云,侯淇彬,白蔚,图像分割方法及装置,申请号:201610850223.6,申请日:2016年9月28日。
  23. 胡事民,张方略,程明明,基于成组物体混合的图像合成方法,申请号:201110262737.7 申请日:2011-09-06。
  24. 胡事民,程明明,张国鑫,基于色彩直方图和全局对比度的图像视觉显著性计算方法,申请号:201110062520.1, 授权日:2012年7月25日。
  25. 胡事民,程明明,张方略,一种基于轮廓带图的相似单元检测方法,申请号:201010159931.8, 授权日: 2011年12月28日。
  26. 胡事民,程明明,张方略,基于几何信息的相似图元隐藏部分自动补全方法,申请号:201010158440.1,授权日: 2012年9月5日。
  27. 胡事民,程明明,张国鑫,一种基于共形能量的内容敏感图像缩放方法,申请号:200910092756.2,授权日2011年12月28日。
  28. 胡事民,陈韬,程明明,张松海,基于图像库的图像合成质量自动评测方法,申请号:200910086937.4,受权日2011年9月14日。
  29. 胡事民,陈韬,程明明,张松海,基于混合梯度场和混合边界条件的图像合成方法和装置,申请号:200910084769.5,授权日2011年5月11日。
  30. 胡事民,程明明,陈韬,张松海,一种基于草图的网络图元自动提取方法和系统,申请号:200910081069,授权日2010年9月1日。
  31. 胡事民,张一飞,程明明,视频像素可伸缩性的计算方法,申请号:200810114466.9,授权日:2009年12月9日。
  32. 胡事民,程明明,陈韬,张松海,基于卡通片的高质量线结构提取方法,申请号:200810106664,授权日2009年9月25日。
  33. 程明明,张少甫,李文博,周瑞,仇玲,一种节能的路灯亮度随需动态调节系统及控制方法,申请号:200810018101,授权日:2012年4月25日。

(Visited 260,068 times, 13 visits today)
Subscribe
Notify of
guest

433 Comments
Inline Feedbacks
View all comments
newsy

期待程老师的新作

李磊

明明老师,DenseCut的代码好像是不是还没有公布?谢谢。

rodrigob

I am also looking for the source code of DenseCut. Any chance of having access to it ?

XiaAn

第12个不是吗?还是不完整的?

李杰

程老师,你好。请问这篇文章:Efficient Salient Region Detection with Soft Image Abstraction 的代码密码是多少?可否告知?

唐晓微

密码

crm

程老师 您好 我最近在跑您的TPAMI的RC论文的程序 程序调试过程中遇到两个问题 不知道老师可以帮忙解答一下吗?
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: “cmd.exe”已退出,代码为 3。
LINK : fatal error LNK1104: 无法打开文件“CmLibd.lib”
百度了很多 也没找到解决方法 还请老师不吝赐教

crm

老师 如上问题已解决 已成功生成解决方案 可是调试不成功 出现如下问题 请问老师应该怎样解决?CmEvaluation::Evaluate 和CmEvaluation::EvalueMask是不是分别绘制salcut前后的评价PR曲线和F值的?

“Saliency.exe”(Win32): 已加载“C:\Windows\SysWOW64\msacm32.dll”。已加载符号。
“Saliency.exe”(Win32): 已加载“C:\Windows\SysWOW64\avicap32.dll”。已加载符号。
“Saliency.exe”(Win32): 已加载“C:\Windows\SysWOW64\version.dll”。已加载符号。
“Saliency.exe”(Win32): 已加载“C:\Windows\SysWOW64\imm32.dll”。已加载符号。
“Saliency.exe”(Win32): 已加载“C:\Windows\SysWOW64\msctf.dll”。无法查找或打开 PDB 文件。
程序“[3916] Saliency.exe”已退出,返回值为 0 (0x0)。

LSN

老师,您好,为什么按照您的方法在release下也不能运行通过呢??
release下,运行出错,提示:无法打开CmLibd.lib
Dubug下,运行出错,提示:无法打开CmLib.lib……
唉,求老师指导~

吴仲华

请问你 error MSB6006: “cmd.exe”已退出,代码为 3,fatal error LNK1104: 无法打开文件“CmLibd.lib”,这两个问题是怎么解决的,请不吝赐教,谢谢。

crm

在release下运行即可

LSN

请问你的缺少.lib文件的问题是什么解决的?我也是遇到了相同的问题?谢谢~

陈利利

您好,请问您的问题解决了吗?我也遇到了同样的问题。麻烦帮一下忙,谢谢!

yc

程老师您好,请问repfinder这篇文章的构建轮廓带图的源代码哪里可以下载?

付平

程老师,你好!我想问一下关于《 A Framework for the Volumetric Integration of Depth Images》中使用的深度图pgm的数据格式,我自己从Kinect中oni或者png中生成的彩色ppm和深度gpm格式后融合结果老是乱七八糟的,深度图像格式有问题。

JBY

程老师您好,我昨天下了CmCode-master文件,但并未在该文件夹里找到lib文件,不知如何配置

Sjt

程老师您好,我在在学习“Global Contrast based Salient Region Detection”实验的时候也出现 error LNK1104: 无法打开文件“CmLibd.lib”的问题,我用的是32位的系统,添加附录的时候选的win32的文件夹,还是不行,请问应该怎么设置?

crm

老师 我也是这个问题 按您说的也没有找到 只有一个CmLib.lib文件

严逸骏

程老师你好,
我最近也在看‘Global Contrast based Salient Region Detection’ 这篇文章,不过我一直是在用matlab做仿真,不是特别熟悉C++,所以想问您这会不会有相关的matlab源代码呢?
谢谢!

crm

你好 请问你现在在看c++的还是matlab的程序?我也刚开始研究这个 方便留个联系方式吗 交流下

panpan

程老师,您好,我运行ImgSaliency这个工程代码,可以生成显著图像,但接下来有这样的错误:OpencCV Error:Assertion failed(f !=NULL) in unkown function,求助怎么解决?

yangc

程老师您好,我是一名学生,最近在学习您的RepFinder: Finding Approximately Repeated Scene Elements for Image Editing这篇文章,请问1.在哪里能下载您的构建轮廓带图以及匹配的代码?2.为何下载您的graphcut以及meanshift代码进行分割,效果不是特别理想。

Zheng

老师好,请问如何获取您的pr curves的代码?

林桥洲

程老师:
您好,我是西安电子科技大学的学生,最近在学习你的Global Contrast Based Salient Region Detection这篇文章,下载这篇文章实现的代码,我想请问一下,你的代码里用到的QT是哪个版本的?

杨勇佳

程老师 已找到解压密码 谢谢

MissP

请问程老师,是怎么样将xml文件转换为yml文件的?只是通过matlab的yml.m文件吗?

MissP

好的,谢谢你。

yueye

程老师:
您好!我下载了您的SaliencyICCV2013,但是配好oencv之后,运行出现如下错误,请问您是什么原因呢,谢谢您!
>LINK : fatal error LNK1181: 无法打开输入文件“C:\Users\YeYue\Desktop\SaliencyICCV2013\Debug\CmLib.lib”

eren

Dear Mr. Cheng,

Do you have the source code that could run on Linux as well? As far as I saw, you are mentioning Visual Studio for running the project. I cannot use Microsoft OS in my work place, is it possible for me to have your approach without having a Microsoft OS? If so, please let me know.

Regards,

Shelrry

I am a master reading in Harbin Institute of Technology. I’m major in Mechanical & Electronic Engineering. My research topic is about the computer vision. Thanks for sharing your codes.

salpaca

程老师,您好!
我在学习“Global Contrast based Salient Region Detection”实验时,debug下编译saliency一直报错LINK : fatal error LNK1104: 无法打开文件“CmLibd.lib”。此时已经在附加库目录中添加cmlibd.lib对应的目录。(ps:问题是目录下生成的是cmlib.lib文件。然后有看到回复在release下编译成功,然后我按照步骤尝试报错error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MTd_StaticDebug”不匹配值“MT_StaticRelease”(SaliencyMain.obj 中)。但我已经将运行库改为MT了不知道为什么还会报错)。
thank you !

cstmdzx

请问问题解决了么?我也遇到了同样的问题

zdb

出现链接错误极有可能是.lib库的目录设置错了,建议你在release模式下重新设置一下

Heverton

Hey guys, I have the same problem, I think. Could you explain it in English? I’m trying to run the project on Debug mode, 32 bits.

This is the error:

LINK : fatal error LNK1104: cannot open file ‘CmLibd.lib’

1 4 5 6 7 8 11