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. |
| 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 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.