src/qvip/qvpolyline.h File Reference
File from the QVision library.
More...
#include <QPointF>
#include <qvipp.h>
#include <QVImage>
Go to the source code of this file.
|
Classes |
class | QVPolyline |
| Polyline representation.
A polyline is a continuous line composed of one or more straight line segments. A QVPolyline is a implementation of a polyline, specified by a list of the points located at the intersection of the segments. Thus, any QVPolyline object inherits from the class QList<QPoint>. More...
|
Functions |
double | IterativePointElimination (const QVPolyline &polyline, QVPolyline &result, const double param, bool maxNumberOfPointsMethod=FALSE, bool intersectLines=TRUE, double *max_removed_cost=NULL) |
| Simplifies a contour eliminating points of little area using IPE algorithm
This function eliminates points of a QVPolyline, simplificating it. Points are recursively eliminated while a) their distance to the line joining its two immediate neighbours is smaller than a given maximum value, or b) the number of points of the approximated polyline falls below a given number (depending on the chosen method).
|
QVPolyline | getConnectedSetBorderContourThreshold (const QVImage< uChar > &image, const QPoint point, const uChar threshold=128) |
| Obtains the border contour of a connected set of pixels in an image, given a membership condition.
A contour is a sequence of pixels from an image, were every two contiguous pixels in the sequence are neighbours in the image.
|
QList< QVPolyline > | getConnectedSetBorderContoursThreshold (const QVImage< uChar > &image, const uChar threshold=128) |
| Obtains a list of the border contours of the connected sets in an image, according to a membership condition.
This function gets the border contours for all of the connected sets of pixels in an image, using the function getContourThreshold, and returns them in a list of polylines (QList<QVPolyline>).
|
QList< QVPolyline > | getLineContoursThreshold4Connectivity (const QVImage< uChar > &image, const uChar threshold=128) |
| Obtains a list of the 4-connected contour lines in the image
A contour is a sequence of pixels from an image, were every two contiguous pixels in the sequence are neighbours in the image.
|
QList< QVPolyline > | getLineContoursThreshold8Connectivity (const QVImage< uChar > &image, const uChar threshold=128) |
| Obtains a list of the 8-connected contour lines in the image
A contour is a sequence of pixels from an image, were every two contiguous pixels in the sequence are neighbours in the image.
|
Detailed Description
File from the QVision library.
- Author:
- PARP Research Group. University of Murcia, Spain.
Definition in file qvpolyline.h.