Resource Base
Table of contents

CDetectedQuadsUnit Class

The CDetectedQuadsUnit class represents an intermediate result unit whose type is detected quads.

Definition

Namespace: dynamsoft::ddn::intermediate_results

Assembly: DynamsoftDocumentNormalizer

class CDetectedQuadsUnit: CIntermediateResultUnit

Inheritance: CIntermediateResultUnit -> CDetectedQuadsUnit

Methods

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.

GetCount

Gets the count of DetectedQuad objects in current object.

int GetCount() 

Return Value

The count of DetectedQuad objects in current object.

GetDetectedQuad

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

operator[]

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.

RemoveAllDetectedQuads

Removes all the DetectedQuads in current object.

virtual void RemoveAllDetectedQuads() = 0

RemoveDetectedQuad

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.

AddDetectedQuad

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.

SetDetectedQuad

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.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version(2.2.10)
  • Version 2.x
    • Version 2.2.0
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
  • Version 1.x
    • Version 1.0.20
    • Version 1.0.10
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support