Resource Base
Table of contents

CCandidateQuadEdgesUnit Class

The CCandidateQuadEdgesUnit class represents an intermediate result unit whose type is candidate quad edges.

Definition

Namespace: dynamsoft::ddn::intermediate_results

Assembly: DynamsoftDocumentNormalizer

class CCandidateQuadEdgesUnit: CIntermediateResultUnit

Inheritance: CIntermediateResultUnit -> CCandidateQuadEdgesUnit

Methods

Method Description
GetCount Gets the count of CandidateQuadEdge objects in current object.
GetCandidateQuadEdge Gets a CandidateQuadEdge object from current object by specifying a index.
RemoveAllCandidateQuadEdges Removes all the candidate quad edges in current object.
RemoveCandidateQuadEdge Removes a candidate quad edge from current object by specifying an index.
AddCandidateQuadEdge Adds a candidate quad edge to current object.
SetCandidateQuadEdge Sets the candidate quad edge at the specified index.

GetCount

Gets the count of CandidateQuadEdge objects in current object.

int GetCount() 

Return Value

The count of CandidateQuadEdge objects in current object.

GetCandidateQuadEdge

Gets a CandidateQuadEdge object from current object by specifying a index.

int GetCandidateQuadEdge(int index, CEdge* edge)

Parameters

[in] index The index of the CandidateQuadEdge object.

[in, out] edge The CandidateQuadEdge object got by the specific index.

Return Value

Returns the error code.

See Also

RemoveAllCandidateQuadEdges

Removes all the candidate quad edges in current object.

virtual void RemoveAllCandidateQuadEdges() = 0

RemoveCandidateQuadEdge

Removes a candidate quad edge from current object by specifying an index.

virtual int RemoveCandidateQuadEdge(int index) = 0

Parameters

[in] index The index of the candidate quad edge to be removed.

Return Value

Returns 0 if successful, otherwise returns a negative value.

AddCandidateQuadEdge

Adds a candidate quad edge to current object.

virtual int AddCandidateQuadEdge(const CEdge& edge, const double matrixToOriginalImage[9] =  IDENTITY_MATRIX) = 0

Parameters

[in] edge The candidate quad edge to be added.

[in] matrixToOriginalImage The matrix to the original image.

Return Value

Returns 0 if successful, otherwise returns a negative value.

SetCandidateQuadEdge

Sets the candidate quad edge at the specified index.

virtual int SetCandidateQuadEdge(int index, const CEdge& edge, const double matrixToOriginalImage[9] =  IDENTITY_MATRIX) = 0;

Parameters

[in] index The index of the candidate quad edge to be set.

[in] edge The candidate quad edge 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