CandidateQuadEdgesUnit Class
The CandidateQuadEdgesUnit class represents an intermediate result unit whose type is candidate quad edges.
Definition
Package: com.dynamsoft.ddn.intermediate_results
public class CandidateQuadEdgesUnit extends IntermediateResultUnit
Inheritance: IntermediateResultUnit -> CandidateQuadEdgesUnit
Methods
| Method | Description |
|---|---|
getCount |
Gets the count of Edge objects in current object. |
getCandidateQuadEdge |
Gets an Edge object from current object by specifying a index. |
getCandidateQuadEdges |
Gets all Edge objects in current object. |
removeAllCandidateQuadEdges |
Removes all the candidate quad edges in current object. |
removeCandidateQuadEdge |
Removes a candidate quad edge from current object by specifying an index. |
addCandidateQuadEdge |
Adds a candidate quad edge to current object. |
setCandidateQuadEdge |
Sets the candidate quad edge at the specified index. |
getCount
Gets the count of Edge objects in current object.
public int getCount()
Return Value
The count of Edge objects in current object.
getCandidateQuadEdge
Gets an Edge object from current object by specifying a index.
public Edge getCandidateQuadEdge(int index) throws DocumentNormalizerException
Parameters
index The index of the Edge object.
Return Value
Returns the Edge object got by the specific index.
Exceptions
See Also
getCandidateQuadEdges
Gets all Edge objects in current object.
public Edge[] getCandidateQuadEdges()
Return Value
Returns an array of Edge objects.
See Also
removeAllCandidateQuadEdges
Removes all the candidate quad edges in current object.
public void removeAllCandidateQuadEdges()
removeCandidateQuadEdge
Removes a candidate quad edge from current object by specifying an index.
public void removeCandidateQuadEdge(int index) throws DocumentNormalizerException
Parameters
index The index of the candidate quad edge to be removed.
Exceptions
addCandidateQuadEdge
Adds a candidate quad edge to current object.
public void addCandidateQuadEdge(Edge edge) throws DocumentNormalizerException
public void addCandidateQuadEdge(Edge edge, double[] matrixToOriginalImage) throws DocumentNormalizerException
Parameters
edge The candidate quad edge to be added.
matrixToOriginalImage The matrix to the original image.
Exceptions
See Also
setCandidateQuadEdge
Sets the candidate quad edge at the specified index.
public void setCandidateQuadEdge(int index, Edge edge) throws DocumentNormalizerException
public void setCandidateQuadEdge(int index, Edge edge, double[] matrixToOriginalImage) throws DocumentNormalizerException
Parameters
index The index of the candidate quad edge to be set.
edge The candidate quad edge to be added.
matrixToOriginalImage The matrix to the original image.
Exceptions
See Also