DetectedQuadsUnit Class
The DetectedQuadsUnit class represents an intermediate result unit whose type is detected quads.
Definition
Namespace: Dynamsoft.DDN.intermediate_results
class DetectedQuadsUnit : IntermediateResultUnit, IEnumerable<DetectedQuadElement>
Inheritance: IntermediateResultUnit -> DetectedQuadsUnit
Methods
| Method | Description |
|---|---|
GetCount |
Gets the count of DetectedQuadElement objects in current object. |
GetDetectedQuad |
Gets a DetectedQuadElement object from current object by specifying a index. |
GetDetectedQuads |
Gets all DetectedQuadElement objects from current object. |
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. |
GetCount
Gets the count of DetectedQuadElement objects in current object.
int GetCount()
Return Value
The count of DetectedQuadElement objects in current object.
GetDetectedQuad
Gets a DetectedQuadElement object from current object by specifying a index.
DetectedQuadElement GetDetectedQuad(int index)
Parameters
[in] index The index of the DetectedQuadElement object.
Return Value
Returns the DetectedQuadElement object got by the specific index.
See Also
GetDetectedQuads
Gets all DetectedQuadElement objects from current object.
DetectedQuadElement[] GetDetectedQuads()
Return Value
Returns all the DetectedQuadElement objects got from current object.
See Also
RemoveAllDetectedQuads
Removes all the DetectedQuads in current object.
void RemoveAllDetectedQuads()
RemoveDetectedQuad
Removes a detected quad from current object by specifying an index.
int RemoveDetectedQuad(int index)
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 DetectedQuadElement to current object.
int AddDetectedQuad(DetectedQuadElement element, double[] matrixToOriginalImage = null)
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.
See Also
SetDetectedQuad
Sets the DetectedQuadElement at the specified index.
int SetDetectedQuad(int index, DetectedQuadElement element, double[] matrixToOriginalImage = null)
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.
See Also