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. |
| Methods Inherited from CIntermediateResultUnit: | |
GetHashId |
Gets the hash ID of the unit. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the image tag of the original image. |
GetType |
Gets the type of the intermediate result unit. |
Clone |
Creates a copy of the intermediate result unit. |
SetHashId |
Sets the hash ID of the unit. |
SetOriginalImageHashId |
Sets the hash ID of the original image. |
SetOriginalImageTag |
Sets the image tag of the original image. |
Retain |
Increases the reference count of the unit. |
Release |
Decreases the reference count of the unit. |
GetTransformMatrix |
Gets the transformation matrix via TransformMatrixType. |
SetTransformMatrix |
Sets the transformation matrix via TransformMatrixType. |
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.