Resource Base
Table of contents

DSCandidateQuadEdgesUnit

The DSCandidateQuadEdgesUnit class represents an intermediate result unit whose type is candidate quad edges.

Definition

Assembly: DynamsoftDocumentNormalizer.xcframework

  • Objective-C
  • Swift
  1. @interface DSCandidateQuadEdgesUnit: DSIntermediateResultUnit
    
  2. class CandidateQuadEdgesUnit: IntermediateResultUnit
    

Methods

Methods Description
getCandidateQuadEdges Get an array of edges. It includes all edges that candidate quadrilaterals assembling.
getCount Get the number of edges.
getCandidateQuadEdge Get an edge.
removeAllCandidateQuadEdges Remove all edges.
removeCandidateQuadEdge Remove an edge.
addCandidateQuadEdge Add an edge.
setCandidateQuadEdge Set an edge.

getCandidateQuadEdges

Get an array of edges. It includes all edges that candidate quadrilaterals assembling.

  • Objective-C
  • Swift
  1. -(nullable NSArray<DSEdge *> *)getCandidateQuadEdges;
    
  2. func getCandidateQuadEdges() -> [DSEdge]?
    

Return Value

Returns an array of edges.

getCount

Get the number of edges.

  • Objective-C
  • Swift
  1. -(NSInteger)getCount;
    
  2. func getCount() -> NSInteger
    

Return Value

Returns the number of edges.

getCandidateQuadEdge

Get the DSEdge object at the specified index.

  • Objective-C
  • Swift
  1. -(nullable DSEdge *)getCandidateQuadEdge:(NSInteger)index;
    
  2. func getCandidateQuadEdge(_ index: Int) -> DSEdge?
    

Parameters

[in] index: The index of the edge.

Return Value

Returns the DSEdge object as the specified edge.

removeAllCandidateQuadEdges

Remove all edges.

  • Objective-C
  • Swift
  1. -(void)removeAllCandidateQuadEdges;
    
  2. func removeAllCandidateQuadEdges()
    

removeCandidateQuadEdge

Remove the DSEdge object at the specified index.

  • Objective-C
  • Swift
  1. -(NSInteger)removeCandidateQuadEdge:(NSInteger)index;
    
  2. func removeCandidateQuadEdge(_ index: Int) -> NSInteger
    

Parameters

[in] index: The index of the edge.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

addCandidateQuadEdge

Add an edge.

  • Objective-C
  • Swift
  1. -(NSInteger)addCandidateQuadEdge:(DSEdge *)edge
           matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;
    
  2. func addCandidateQuadEdge(_ edge: DSEdge, matrixToOriginalImage: CGAffineTransform) -> NSInteger
    

Parameters

[in] edge: The edge to be added.

[in] matrixToOriginalImage: The matrix to the original image.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

setCandidateQuadEdge

Set the DSEdge object at the specified index.

  • Objective-C
  • Swift
  1. -(NSInteger)setCandidateQuadEdge:(NSInteger)index 
                            edge:(DSEdge *)edge
           matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;
    
  2. func setCandidateQuadEdge(_ index: Int, edge: DSEdge, matrixToOriginalImage: CGAffineTransform) -> NSInteger
    

Parameters

[in] index: The index of the edge.

[in] edge: The edge to be set.

[in] matrixToOriginalImage: The matrix to the original image.

Return Value

Returns the ErrorCode if failed. Otherwise, returns 0.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version
  • Version 2.x
    • Version 2.2.10
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.10
  • Version 1.x
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.30
    • Version 1.0.21
    • Version 1.0.20
    • Version 1.0.12
    • Version 1.0.11
    • Version 1.0.10
    • Version 1.0.0
    • Version 1.0.5
    • Version 1.0.4
    • Version 1.0.3
    • Version 1.0.2
    • Version 1.0.1
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support