CornersUnit Class
The CornersUnit class represents an intermediate result unit whose type is corners.
Definition
Package: com.dynamsoft.ddn.intermediate_results
public class CornersUnit extends IntermediateResultUnit
Inheritance: IntermediateResultUnit -> CornersUnit
Methods
| Method | Description |
|---|---|
getCount |
Gets the count of Corner objects in current object. |
getCorner |
Gets a Corner object from current object by specifying a index. |
getCorners |
Gets all Corner objects in current object. |
removeAllCorners |
Removes all the corners in current object. |
removeCorner |
Removes a corner from current object by specifying an index. |
addCorner |
Adds a corner to current object. |
setCorner |
Sets the corner at the specified index. |
getCount
Gets the count of Corner objects in current object.
public int getCount()
Return Value
The count of Corner objects in current object.
getCorner
Gets a Corner object from current object by specifying a index.
public Corner getCorner(int index) throws DocumentNormalizerException
Parameters
index The index of the Corner object.
Return Value
Returns the Corner object got by the specific index.
Exceptions
See Also
getCorners
Gets all Corner objects in current object.
public Corner[] getCorners()
Return Value
Returns an array of Corner objects.
See Also
removeAllCorners
Removes all the corners in current object.
public void removeAllCorners() throws DocumentNormalizerException
Exceptions
removeCorner
Removes a corner from current object by specifying an index.
public void removeCorner(int index) throws DocumentNormalizerException
Parameters
index The index of the corner to be removed.
Exceptions
addCorner
Adds a corner to current object.
public void addCorner(Corner corner) throws DocumentNormalizerException
public void addCorner(Corner corner, double[] matrixToOriginalImage) throws DocumentNormalizerException
Parameters
corner The corner to be added.
matrixToOriginalImage The matrix to the original image.
Exceptions
See Also
setCorner
Sets the corner at the specified index.
public void setCorner(int index, Corner corner) throws DocumentNormalizerException
public void setCorner(int index, Corner corner, double[] matrixToOriginalImage) throws DocumentNormalizerException
Parameters
index The index of the corner to be set.
corner The corner to be added.
matrixToOriginalImage The matrix to the original image.
Exceptions
See Also