layout | title | description | keywords | permalink |
---|---|---|---|---|
default-layout |
CDetectedQuadsUnit Class |
This page shows CDetectedQuadsUnit class definition of Dynamsoft Document Normalizer SDK C++ Edition. |
GetCount, GetDetectedQuad, CDetectedQuadsUnit, api reference |
/programming/cplusplus/api-reference/detected-quads-unit.html |
The CDetectedQuadsUnit class represents an intermediate result unit whose type is detected quads.
Namespace: dynamsoft::ddn::intermediate_results
Assembly: DynamsoftDocumentNormalizer
class CDetectedQuadsUnit: CIntermediateResultUnit
Inheritance: [CIntermediateResultUnit]({{ site.dcv_cpp_api }}core/intermediate-results/intermediate-result-unit.html) -> CDetectedQuadsUnit
Method | Description |
---|---|
GetCount |
Gets the count of DetectedQuad objects in current object. |
GetDetectedQuad |
Gets a DetectedQuad object from current object by specifying a index. |
operator[] |
Gets a DetectedQuad object from current object by specifying a index. |
RemoveAllDetectedQuads |
Removes all the detected quads in current object. |
RemoveDetectedQuad |
Removes a detected quad from current object by specifying an index. |
AddDetectedQuad |
Adds a detected quad to current object. |
SetDetectedQuad |
Sets the detected quad at the specified index. |
Gets the count of DetectedQuad objects in current object.
int GetCount()
Return Value
The count of DetectedQuad objects in current object.
Gets a DetectedQuad object from current object by specifying a index.
const CDetectedQuadElement* GetDetectedQuad(int index)
Parameters
[in] index
The index of the DetectedQuad object.
Return Value
Returns the DetectedQuad object got by the specific index.
See Also
Gets a DetectedQuad object from current object by specifying a index.
virtual const CDetectedQuadElement* operator[](int index) const = 0
Parameters
[in] index
The index of the DetectedQuad object.
Return value
Returns the DetectedQuad object got by the specific index.
Removes all the DetectedQuads in current object.
virtual void RemoveAllDetectedQuads() = 0
Removes a detected quad from current object by specifying an index.
virtual int RemoveDetectedQuad(int index) = 0
Parameters
[in] index
The index of the detected quad to be removed.
Return Value
Returns 0 if successful, otherwise returns a negative value.
Adds a DetectedQuad to current object.
virtual int AddDetectedQuad(const CDetectedQuadElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0
Parameters
[in] element
The detected quad to be added.
[in] matrixToOriginalImage
The matrix to the original image.
Return Value
Returns 0 if successful, otherwise returns a negative value.
Sets the DetectedQuad at the specified index.
virtual int SetDetectedQuad(int index, const CDetectedQuadElement* element, const double matrixToOriginalImage[9] = IDENTITY_MATRIX) = 0
Parameters
[in] index
The index of the detected quad to be set.
[in] element
The detected quad to be added.
[in] matrixToOriginalImage
The matrix to the original image.
Return Value
Returns 0 if successful, otherwise returns a negative value.