代码拉取完成,页面将自动刷新
/**************************************************************************************************************
* Edge Drawing (ED) and Edge Drawing Parameter Free (EDPF) source codes.
* Copyright (C) Cuneyt Akinlar & Cihan Topal
* E-mails of the authors: cuneytakinlar@gmail.com, cihantopal@gmail.com
*
* Please cite the following papers if you use EDPF library:
*
* [1] C. Topal and C. Akinlar, “Edge 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, “EDPF: 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).
**************************************************************************************************************/
#ifndef _EDPF_
#define _EDPF_
#include "ED.h"
#define MAX_GRAD_VALUE 128*256
#define EPSILON 1.0
class EDPF : public ED {
public:
EDPF(cv::Mat srcImage);
EDPF(ED obj);
EDPF(EDColor obj);
private:
double divForTestSegment;
double *H;
int np;
short *gradImg;
void validateEdgeSegments();
short *ComputePrewitt3x3(); // differs from base class's prewit function (calculates H)
void TestSegment(int i, int index1, int index2);
void ExtractNewSegments();
double NFA(double prob, int len);
};
#endif // ! _EDPF_
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。