You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
528 B
C
28 lines
528 B
C
|
5 years ago
|
#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_
|