forked from npinto/fddb-evaluation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEllipseR.hpp
36 lines (32 loc) · 804 Bytes
/
EllipseR.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef __ELLIPSER_HPP__
#define __ELLIPSER_HPP__
#include "common.hpp"
#include <vector>
#ifndef __XCODE__
#include <cv.h>
#endif
#include "Region.hpp"
/**
* Specification of an elliptical region
* */
class EllipseR : public Region{
private:
/// x-position of the center
double cx;
/// y-position of the center
double cy;
/// orientation of the major axis
double angle;
/// half-length of the major axis
double ra;
/// half-length of the minor axis
double rb;
public:
/// Constructor
EllipseR(IplImage *, std::vector<double> *);
/// Method to add this ellipse of a given color and
/// line width to an image. If the
/// last parameter is not NULL, display the text also.
virtual IplImage *display(IplImage *I, CvScalar color, int lineWidth, const char *text);
};
#endif