20 #include "../geometry.h"
21 #include "../bitmap/abstract_bitmap.h"
22 #include "../bitmap/bitmap_access.h"
23 #include "../bitmap/mask_bitmap_access.h"
24 #include "../exception.h"
80 std::vector<IntegerContour2D*>& boundary,
82 std::vector<IntPoint>& border,
93 BadSeedPoint(
int x,
int y,
bool lefttop,
bool righttop,
bool leftbottom,
bool rightbottom):
94 Exception(
"Bad seed (%d,%d), pattern:\n %d%d\n %d%d\n",
x,
y, lefttop, righttop, leftbottom, rightbottom)
A very basic class for any image.
Base class for all exceptions.
BadSeedPoint(int x, int y, bool lefttop, bool righttop, bool leftbottom, bool rightbottom)
A sequence of integer-valued 2D points.
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.
IntPoint getPoint(int index) const
void clear()
Removes contour content.
std::vector< IntPoint > points
int getPointCount() const
void addPoint(int x, int y)
Adds a new point to the end of the contour.
A generic to write mask bitmap data lookup tables for masks values.
jobject jlong jint jint y
Beatmup::InternalBitmap * bitmap