10 #include "internal/Image.h"
11 #include "internal/PixelConverters.h"
12 #include "internal/Point.h"
13 #include "internal/RGBAPixel.h"
14 #include "internal/SavitskyGolay.h"
23 float x, y, width, height;
29 std::vector<std::vector<Point>> contours;
30 std::vector<std::vector<QuadBezier>> curves;
34 std::vector<std::array<int, 4>> hierarchy;
37 std::vector<bool> is_hole;
43 std::vector<ImageLib::RGBAPixel<uint8_t>> colors;
47 ContoursResult find_contours(
const std::vector<uint8_t> &binary,
int width,
int height);
49 void stitch_smooth(std::vector<Point> &vecA, std::vector<Point> &vecB);
50 void coupled_smooth(std::vector<std::vector<Point>> &contours,
Rect bounds);
52 void pack_with_boundary_constraints(std::vector<std::vector<Point>> &contours,
Rect bounds,