Img2Num C++ (Internal Developer Docs) dev
API Documentation
Loading...
Searching...
No Matches
bezier.h
1#ifndef BEZIER_H
2#define BEZIER_H
3
4#include "internal/contours.h"
5
6void fit_curve_reduction(
7 const std::vector<std::vector<Point>>& chains, std::vector<std::vector<QuadBezier>>& results,
8 float tolerance
9);
10
11// Same, but `fixed[i][k]!=0` marks point k of chain i as a junction that must NOT
12// move: the chain is split at those points so each becomes an exact (pinned)
13// curve endpoint. Chains with no fixed points fit identically to the overload
14// above.
15void fit_curve_reduction(
16 const std::vector<std::vector<Point>>& chains, const std::vector<std::vector<uint8_t>>& fixed,
17 std::vector<std::vector<QuadBezier>>& results, float tolerance
18);
19#endif