|
Beatmup
|
A sequence of integer-valued 2D points. More...
#include <contours.h>
Classes | |
| class | BadSeedPoint |
Public Member Functions | |
| IntegerContour2D () | |
| void | addPoint (int x, int y) |
| Adds a new point to the end of the contour. More... | |
| void | clear () |
| Removes contour content. More... | |
| int | getPointCount () const |
| float | getLength () const |
| IntPoint | getPoint (int index) const |
Static Public Member Functions | |
| static void | computeBoundary (std::vector< IntegerContour2D * > &boundary, AbstractBitmap &bitmap, std::vector< IntPoint > &border, BinaryMaskWriter &testedPixels, float level=0.5f) |
| Discovers an area boundary in a bitmap following a level curve, starting from a given set of points. More... | |
Private Attributes | |
| std::vector< IntPoint > | points |
| float | totalLength |
| float | lastFragmentLength |
A sequence of integer-valued 2D points.
Definition at line 33 of file contours.h.
| IntegerContour2D::IntegerContour2D | ( | ) |
Definition at line 132 of file contours.cpp.
| void IntegerContour2D::addPoint | ( | int | x, |
| int | y | ||
| ) |
Adds a new point to the end of the contour.
Some points may be skipped to optimize the storage.
| x | new point X coordinate |
| y | new point Y coordinate |
Definition at line 137 of file contours.cpp.
| void IntegerContour2D::clear | ( | ) |
Removes contour content.
Definition at line 171 of file contours.cpp.
|
inline |
|
inline |
Definition at line 62 of file contours.h.
|
inline |
|
static |
Discovers an area boundary in a bitmap following a level curve, starting from a given set of points.
| boundary | vector to put connected components of the detected boundary to |
| bitmap | the bitmap to discover |
| border | the starting points |
| testedPixels | a writer of a binary mask bitmap marking pixels that are already processed |
| level | the level of the curve |
Definition at line 166 of file contours.cpp.
|
private |
Definition at line 35 of file contours.h.
|
private |
Definition at line 37 of file contours.h.
|
private |
Definition at line 38 of file contours.h.