layout | title | description | keywords | needAutoGenerateSidebar |
---|---|---|---|---|
default-layout |
class CContoursUnit - Dynamsoft Core Module C++ Edition API Reference |
This page shows the C++ edition of the class CContoursUnit in Dynamsoft Core Module. |
contours, c++ |
true |
The CContoursUnit
class represents a unit that contains contours as intermediate results. It is derived from the CIntermediateResultUnit
class.
Namespace: dynamsoft::intermediate_results
Assembly: DynamsoftCore
class CContoursUnit : public CIntermediateResultUnit
Method | Description |
---|---|
GetCount |
Gets the number of contours in the unit. |
GetContour |
Gets the contour at the specified index. |
{%- include inherited-methods/intermediate-result-unit.md -%}
Gets the number of contours in the unit.
virtual int GetCount() const;
Return value
Returns the number of contours in the unit.
Gets the contour at the specified index.
virtual int GetContour(int index, CContour* contour) const;
Parameters
[in] index
The index of the contour to get.
[in, out] contour
A pointer to a CContour object that will be filled with the contour data.
Return value
Returns 0 if successful, or an error code if the contour could not be retrieved.
Note: The caller of this method is responsible for allocating memory for the contour
pointer.