CDetectedQuadsResult Class
The CDetectedQuadsResult class stores a captured result whose type is detected quads.
Definition
Namespace: dynamsoft::ddn
Assembly: DynamsoftDocumentNormalizer
class CDetectedQuadsResult
Methods
Method | Description |
---|---|
GetItemsCount |
Gets the number of detected quadrilaterals. |
GetErrorCode |
Gets the error code of the detection operation. |
GetErrorString |
Gets the error message of the detection operation. |
GetItem |
Gets the detected quadrilateral item at a specified index. |
HasItem |
Check if the item is present in the array. |
RemoveItem |
Remove a specific item from the array in the detected quads. |
GetRotationTransformMatrix |
Get the rotation transformation matrix of the original image relative to the rotated image. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the tag of the original image. |
operator[] |
Gets the detected quadrilateral item at a specified index. |
Retain |
Increases the reference count of the CDetectedQuadsResult object. |
Release |
Decreases the reference count of the CDetectedQuadsResult object. |
GetItemsCount
Gets the number of detected quadrilaterals.
int GetItemsCount()
Return value
Returns the number of detected quadrilaterals.
GetErrorCode
Gets the error code of the detection operation.
int GetErrorCode()
Return value
Returns the error code.
See Also
GetErrorString
Gets the error message of the detection operation.
const char* GetErrorString()
Return value
Returns a pointer to a null-terminated string that represents the error message.
GetItem
Gets the detected quadrilateral item at a specified index.
const CDetectedQuadResultItem* GetItem(int index) const
Parameters
[in] index
The index of the detected quadrilateral to retrieve.
Return value
Returns a pointer to a CDetectedQuadResultItem object that represents the detected quadrilateral at the specified index.
See Also
HasItem
Check if the item is present in the array.
bool HasItem(const CDetectedQuadResultItem* item) const
Parameters
[in] item
The specific item to check.
Return value
Returns a bool value indicating whether the item is present in the array or not.
RemoveItem
Remove a specific item from the array in the detected quads.
int RemoveItem(const CDetectedQuadResultItem* item)
Parameters
[in] item
The specific item to remove.
Return value
Return value indicating whether the deletion was successful or not.
GetRotationTransformMatrix
Get the rotation transformation matrix of the original image relative to the rotated image.
void GetRotationTransformMatrix(double matrix[9]) const;
Parameters
[out] matrix
A double array which represents the rotation transform matrix.
GetOriginalImageHashId
Gets the hash ID of the original image.
const char* GetOriginalImageHashId()
Return value
Returns a pointer to a null-terminated string that represents the hash ID of the original image.
GetOriginalImageTag
Gets the tag of the original image.
const CImageTag* GetOriginalImageTag()
Return value
Returns a pointer to a CImageTag object that represents the tag of the original image.
See Also
operator[]
Gets the detected quadrilateral item at a specified index.
virtual const CDetectedQuadResultItem* operator[](int index) const = 0
Parameters
[in] index
The zero-based index of the detected quadrilateral to retrieve.
Return value
Returns a pointer to a CDetectedQuadResultItem object that represents the detected quadrilateral at the specified index.
Retain
Increases the reference count of the CDetectedQuadsResult object.
virtual CDetectedQuadsResult* Retain() = 0;
Return value
An object of CDetectedQuadsResult.
Release
Decreases the reference count of the CDetectedQuadsResult object.
virtual void Release() = 0;