| layout | default-layout |
|---|---|
| title | class CContour - Dynamsoft Core Module C++ Edition API Reference |
| description | API reference for the CContour class in Dynamsoft Core C++ Edition, representing a contour as a set of points outlining the boundary of a detected region. |
| keywords | contour, c++ |
| needAutoGenerateSidebar | true |
The CContour class represents a contour in 2D space. It contains an array of CPoint objects, which represent the vertices of the contour.
Namespace: dynamsoft::basic_structures
Assembly: DynamsoftCore
class CContour | Method | Description |
|---|---|
SetPoints |
Sets the point array and the points free function pointer. |
GetPointsCount |
Gets the number of points in the point array. |
GetPoints |
Gets the point array. |
~CContour |
The destructor of CContour. |
The destructor of CContour. It releases the memory of the point array.
~CContour()Sets the point array and the points free function pointer.
void SetPoints(int pointsCount, const CPoint* points, FreePointsFunc freePointsFunc);Parameters
[in] pointsCount: The number of points in the point array.
[in] points: The point array.
[in] freePointsFunc: The freePointsFunc function pointer.
Gets the number of points in the point array.
int GetPointsCount() const;Return Value
The number of points in the point array.
Gets the point array.
const CPoint* GetPoints() const;Return Value
Return the point array.