Resource Base
Table of contents

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;

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