PARP Research Group University of Murcia, Spain


src/qvip/qvpolyline.cpp File Reference

File from the QVision library. Contains operations on polylines. More...

#include <iostream>
#include <float.h>
#include <qvdefines.h>
#include <qvmatrixalgebra.h>
#include <QVPolyline>
#include <QVPolylineF>

Go to the source code of this file.

Functions

double IterativePointElimination (const QVPolyline &polyline, QVPolyline &result, const double param, bool maxNumberOfPointsMethod, bool intersectLines, double *max_removed_cost)
 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 startPoint, const uChar threshold)
 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< QVPolylinegetConnectedSetBorderContoursThreshold (const QVImage< uChar > &image, const uChar threshold)
 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< QVPolylinegetLineContoursThreshold4Connectivity (const QVImage< uChar > &image, const uChar threshold)
 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< QVPolylinegetLineContoursThreshold8Connectivity (const QVImage< uChar > &image, const uChar threshold)
 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. Contains operations on polylines.

Author:
PARP Research Group. University of Murcia, Spain.

Definition in file qvpolyline.cpp.




QVision framework. PARP research group, copyright 2007, 2008.