PixelSet stores and manipulates pixel collections.
More...
#include <PixelSet.h>
|
| Polygon | polygon (const QVector< Vector2D > &pts) const |
| | Returns a poly line along the points defined by angle. If maxAngleThr != -1, points are rejected if the cosine of their enclosing angle is smaller than maxAngleThr. e.g. maxAngleThr = 0 would allow polygon changes of up to 90°. More...
|
| |
PixelSet stores and manipulates pixel collections.
- See also
- BaseElement
| Enumerator |
|---|
| connect_Delaunay |
|
| connect_region |
|
| connect_end |
|
| Enumerator |
|---|
| draw_nothing |
|
| draw_pixels |
|
| draw_poly |
|
| draw_rect |
|
| draw_end |
|
| rdf::PixelSet::PixelSet |
( |
| ) |
|
| rdf::PixelSet::PixelSet |
( |
const QVector< QSharedPointer< Pixel > > & |
set | ) |
|
| void rdf::PixelSet::add |
( |
const QSharedPointer< Pixel > & |
pixel | ) |
|
|
virtual |
| void rdf::PixelSet::append |
( |
const QVector< QSharedPointer< Pixel > > & |
set | ) |
|
|
virtual |
| double rdf::PixelSet::area |
( |
| ) |
const |
| Rect rdf::PixelSet::boundingBox |
( |
| ) |
const |
| Vector2D rdf::PixelSet::center |
( |
| ) |
const |
| QVector< Vector2D > rdf::PixelSet::centers |
( |
| ) |
const |
This is a convenience function that connects SuperPixels. It is recommended to use the connector classes respectively.
- Parameters
-
| superPixels | The super pixels. |
| rect | The bounding rect. |
| mode | The connection mode. |
- Returns
| bool rdf::PixelSet::contains |
( |
const QSharedPointer< Pixel > & |
pixel | ) |
const |
| Polygon rdf::PixelSet::convexHull |
( |
| ) |
const |
| void rdf::PixelSet::filterDuplicates |
( |
int |
eps = 5 | ) |
|
|
virtual |
| QSharedPointer< Pixel > rdf::PixelSet::find |
( |
const QString & |
id | ) |
const |
Returns the pixel having the id specified. If no pixel with this ID exists, a null pointer is returned.
- Parameters
-
- Returns
| Ellipse rdf::PixelSet::fitEllipse |
( |
| ) |
const |
| Line rdf::PixelSet::fitLine |
( |
double |
offsetAngle = 0.0 | ) |
const |
| QVector< PixelSet > rdf::PixelSet::fromEdges |
( |
const QVector< QSharedPointer< PixelEdge > > & |
edges | ) |
|
|
static |
| bool rdf::PixelSet::isEmpty |
( |
| ) |
const |
| double rdf::PixelSet::lineSpacing |
( |
double |
statMoment = 0.5 | ) |
const |
| Vector2D rdf::PixelSet::meanCenter |
( |
| ) |
const |
Merges multiple pixel sets to one set.
- Parameters
-
- Returns
| void rdf::PixelSet::operator+= |
( |
const PixelSet & |
set | ) |
|
| void rdf::PixelSet::operator<< |
( |
const QSharedPointer< Pixel > & |
pixel | ) |
|
| void rdf::PixelSet::operator<< |
( |
const PixelSet & |
set | ) |
|
| QSharedPointer< Pixel > rdf::PixelSet::operator[] |
( |
int |
idx | ) |
const |
| double rdf::PixelSet::orientation |
( |
double |
statMoment = 0.5 | ) |
const |
Computes the sets median orientation.
- Parameters
-
| statMoment | if != 0.5 a quartile other than the median is computed. |
- Returns
- The set's median orientation.
| QVector<QSharedPointer<Pixel> > rdf::PixelSet::pixels |
( |
| ) |
const |
|
inline |
| QVector< Vector2D > rdf::PixelSet::pointSet |
( |
double |
offsetAngle = 0.0 | ) |
const |
Returns a point set. The points are sampled along the pixel's ellipses w.r.t the relative angle which is added to the text line orientation. If angle == DBL_MAX or pixel->stats() == NULL, the ellipse centers are sampled instead.
- Parameters
-
| offsetAngle | The angle which is added to the pixel's local orientation. |
- Returns
Returns a poly line along the points defined by angle. If maxAngleThr != -1, points are rejected if the cosine of their enclosing angle is smaller than maxAngleThr. e.g. maxAngleThr = 0 would allow polygon changes of up to 90°.
- Parameters
-
| angle | The angle for sampling the ellipses. |
| maxAngleThr | The maximum angle thresh. |
- Returns
Returns the convex hull of the PixelSet.
- Returns
| void rdf::PixelSet::remove |
( |
const QSharedPointer< Pixel > & |
pixel | ) |
|
|
virtual |
| void rdf::PixelSet::scale |
( |
double |
factor | ) |
|
|
virtual |
| int rdf::PixelSet::size |
( |
| ) |
const |
| QVector< PixelSet > rdf::PixelSet::splitScales |
( |
| ) |
const |
| QString rdf::PixelSet::toString |
( |
| ) |
const |
|
overridevirtual |
| QSharedPointer< TextLine > rdf::PixelSet::toTextLine |
( |
| ) |
const |
| QVector<QSharedPointer<Pixel> > rdf::PixelSet::mSet |
|
protected |
The documentation for this class was generated from the following files: