#include <Shapes.h>
| rdf::Ellipse::Ellipse |
( |
| ) |
|
| rdf::Ellipse::Ellipse |
( |
const cv::RotatedRect & |
rect | ) |
|
| double rdf::Ellipse::angle |
( |
| ) |
const |
| double rdf::Ellipse::area |
( |
| ) |
const |
| Rect rdf::Ellipse::bbox |
( |
bool |
squared = false | ) |
const |
Returns the ellipse's axis aligned bounding box.
- Parameters
-
| squared | if set to true, the bounding box is squared (e.g. for pdfs). |
- Returns
| void rdf::Ellipse::draw |
( |
QPainter & |
p, |
|
|
double |
alpha = 0.0 |
|
) |
| const |
| Ellipse rdf::Ellipse::fromData |
( |
const std::vector< cv::Point > & |
pts | ) |
|
|
static |
| Ellipse rdf::Ellipse::fromData |
( |
const cv::Mat & |
pts, |
|
|
const Vector2D & |
center |
|
) |
| |
|
static |
Returns the best fitting ellipse.
- Parameters
-
| pts | a N x 2 CV_32FC1 matrix representing the 2D points. |
| center | The ellipses center. |
- Returns
| Vector2D rdf::Ellipse::getPoint |
( |
double |
angle | ) |
const |
Returns a point on the ellipse at the specified angle. 0 degree corresponds to the positive x-axis. The angle is clockwise.
- Parameters
-
- Returns
| bool rdf::Ellipse::isNull |
( |
| ) |
const |
| bool rdf::Ellipse::isValid |
( |
| ) |
const |
| double rdf::Ellipse::majorAxis |
( |
| ) |
const |
The ellipses major axis.
- Returns
| double rdf::Ellipse::minorAxis |
( |
| ) |
const |
The ellipse's minor axis.
- Returns
| void rdf::Ellipse::move |
( |
const Vector2D & |
vec | ) |
|
| void rdf::Ellipse::pdf |
( |
cv::Mat & |
img, |
|
|
const Rect & |
box = Rect() |
|
) |
| const |
| double rdf::Ellipse::radius |
( |
| ) |
const |
The mean of major and minor axis.
- Returns
| void rdf::Ellipse::scale |
( |
double |
factor | ) |
|
Scales the ellipse (center and size).
- Parameters
-
| void rdf::Ellipse::setAngle |
( |
double |
angle | ) |
|
| void rdf::Ellipse::setAxis |
( |
const Vector2D & |
axis | ) |
|
| void rdf::Ellipse::setCenter |
( |
const Vector2D & |
center | ) |
|
| cv::Mat rdf::Ellipse::toBinaryMask |
( |
const Rect & |
box = Rect() | ) |
const |
| cv::Mat rdf::Ellipse::toCov |
( |
| ) |
const |
Converts the convidence ellipse to a covariance matrix.
- Returns
- The covariance matrix (2 x 2 CV_64FC1)
| QString rdf::Ellipse::toString |
( |
| ) |
const |
| double rdf::Ellipse::mAngle = 0.0 |
|
protected |
| bool rdf::Ellipse::mIsNull = true |
|
protected |
The documentation for this class was generated from the following files: