74 epsilon(epsilon), max_corners(max_corners), search_iters(search_iters) {};
80 const std::vector<utils::Point32f> &approximate(
const std::vector<utils::Point> &poly,
bool polygon =
true);
81 const std::vector<utils::Point32f> &approximate(
const std::vector<utils::Point32f> &poly,
bool polygon =
true);
ICLQt_API void polygon(ImgQ &image, const std::vector< utils::Point > &corners)
draws a polygon (constructed out of linestrips
undocument this line if you encounter any issues!
Definition: Any.h:37
void setEpsilon(float value)
Definition: RDPApproximation.h:92
const std::vector< utils::Point32f > & getLastApproximation() const
returns the last approximation result
Definition: RDPApproximation.h:88
std::vector< utils::Point32f > approximation
result list
Definition: RDPApproximation.h:121
#define ICLCV_API
Definition: CompatMacros.h:177
float epsilon
parameters
Definition: RDPApproximation.h:101
int max_corners
Definition: RDPApproximation.h:102
Ipp64f icl64f
64Bit floating point type for the ICL
Definition: BasicTypes.h:52
Definition: RDPApproximation.h:66
RDPApproximation(float epsilon=0.1f, int max_corners=0, int search_iters=3)
default constructor with given arguments
Definition: RDPApproximation.h:73
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
Ramer-Douglas-Peucker algorithm.
Definition: RDPApproximation.h:64
int search_iters
Definition: RDPApproximation.h:103
Point class of the ICL used e.g. for the Images ROI offset.
Definition: Point.h:58
float getMaxCorners() const
Definition: RDPApproximation.h:96
void setSearchIterations(float value)
Definition: RDPApproximation.h:94
void setMaxCorners(float value)
Definition: RDPApproximation.h:93
float getEpsilon() const
Definition: RDPApproximation.h:95
ChainPoint * next
Definition: RDPApproximation.h:68
ChainPoint * prev
Definition: RDPApproximation.h:67
ImgBase is the Image-Interface class that provides save access to underlying Img-template .
Definition: ImgBase.h:131
float getSearchIterations() const
Definition: RDPApproximation.h:97