Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 1.78 KB

File metadata and controls

78 lines (50 loc) · 1.78 KB
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

CContour

The CContour class represents a contour in 2D space. It contains an array of CPoint objects, which represent the vertices of the contour.

Definition

Namespace: dynamsoft::basic_structures

Assembly: DynamsoftCore

class CContour 

Methods

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.

~CContour Destructor

The destructor of CContour. It releases the memory of the point array.

~CContour()

SetPoints

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.

GetPointsCount

Gets the number of points in the point array.

int GetPointsCount() const;

Return Value

The number of points in the point array.

GetPoints

Gets the point array.

const CPoint* GetPoints() const;

Return Value

Return the point array.