资源简介
这是一个国外专家发在模式识别上面的一篇sci文章,代码附上
代码片段和文件信息
/**************************************************************************************************************
* Disclaimer for Edge Drawing Library
*
* This software library is provided “as is“ and “with all faults.“ Authors of this library make
* no warranties of any kind concerning the safety suitability lack of viruses inaccuracies
* typographical errors or other harmful components of this software product. There are inherent
* dangers in the use of any software and you are solely responsible for determining whether this
* software product is compatible with your equipment and other software installed on your equipment.
* You are also solely responsible for the protection of your equipment and backup of your data
* and the authors of this software product will not be liable for any damages you may suffer in
* connection with using modifying or distributing this software product.
*
* You are allowed to use this library for scientific research only.
*
* By using this library you are implicitly assumed to have accepted all of the above statements
* and accept to cite the following papers:
*
* [1] C. Topal and C. Akinlar 揈dge Drawing: A Combined Real-Time Edge and Segment Detector?
* Journal of Visual Communication and Image Representation 23(6) 862-872 DOI: 10.1016/j.jvcir.2012.05.004 (2012).
*
* [2] C. Akinlar and C. Topal 揈DPF: A Real-time Parameter-free Edge Segment Detector with a False Detection Control?
* International Journal of Pattern Recognition and Artificial Intelligence 26(1) DOI: 10.1142/S0218001412550026 (2012).
**************************************************************************************************************/
/***************************************************
* A simple test program for ED & EDPF
***************************************************/
#include
#include
#include
#include “EDLib.h“
#include “EdgeMap.h“
#include “Timer.h“
/// This code needs OpenCV2.1 DLLs to run (for cvSmooth function)
/// They have been copied to the current directory from OpenCV distribution
/// cv210.dll & cxcore210.dll
///
#pragma comment(lib “cv210.lib“) // OpenCV
#pragma comment(lib “cxcore210.lib“) // OpenCV - cxcore
#pragma comment(lib “EDLib.lib“) // DetectEdgesByED DetectEdgesByEDPF DetectEdgesByCannySR DetectEdgesByCannySRPF functions
/// Two functions to read/save PGM files
int ReadImagePGM(char *filename char **pBuffer int *pWidth int *pHeight);
void SaveImagePGM(char *filename char *buffer int width int height);
int main(){
// Here is the test code
int width height;
unsigned char *srcImg;
char *str = “lena.pgm“;
if (ReadImagePGM(str (char **)&srcImg &width &height) == 0){
printf(“Failed opening <%s>\n“ str);
return 1;
} //end-if
printf(“Working on %dx%d <%s> image\n\n“ width height str);
//--
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2085888 2010-04-06 02:05 EDTest-VS2010\cv210.dll
文件 471900 2010-04-06 02:05 EDTest-VS2010\cv210.lib
文件 2201088 2010-04-06 02:04 EDTest-VS2010\cxcore210.dll
文件 411508 2010-04-06 02:04 EDTest-VS2010\cxcore210.lib
文件 262180 2013-11-04 14:45 EDTest-VS2010\ED-EdgeMap.pgm
文件 6628314 2012-06-14 06:38 EDTest-VS2010\ED.pdf
文件 16896 2012-08-08 14:59 EDTest-VS2010\EDDLL.dll
文件 1346 2012-06-21 10:05 EDTest-VS2010\EdgeMap.h
文件 2196 2013-03-15 15:47 EDTest-VS2010\EDLib.h
文件 6101694 2013-11-04 14:43 EDTest-VS2010\EDLib.lib
文件 262180 2013-11-04 14:45 EDTest-VS2010\EDPF-EdgeMap.pgm
文件 2558338 2012-03-02 10:05 EDTest-VS2010\EDPF.pdf
文件 878 2013-11-04 14:44 EDTest-VS2010\EDTest.sln
..A..H. 15872 2013-03-18 11:15 EDTest-VS2010\EDTest.suo
..A..H. 31232 2013-11-04 14:48 EDTest-VS2010\EDTest.v11.suo
文件 3662 2012-08-08 15:03 EDTest-VS2010\EDTest.vcproj
文件 4145 2013-11-04 14:44 EDTest-VS2010\EDTest.vcxproj
文件 940 2013-11-04 14:44 EDTest-VS2010\EDTest.vcxproj.filters
文件 262182 2010-11-24 16:20 EDTest-VS2010\lena.pgm
文件 1752 2013-03-15 18:03 EDTest-VS2010\License.txt
文件 10227 2013-03-15 18:03 EDTest-VS2010\main.cpp
文件 718 2012-02-05 14:47 EDTest-VS2010\Timer.h
文件 20146 2013-11-04 14:44 EDTest-VS2010\UpgradeLog.htm
文件 4014 2013-11-04 14:44 EDTest-VS2010\UpgradeLog.xm
目录 0 2013-11-04 16:48 EDTest-VS2010
----------- --------- ---------- ----- ----
21359296 25
评论
共有 条评论