Resource Base
Table of contents

DSNormalizedImagesUnit

The DSNormalizedImagesUnit class represents an intermediate result unit whose type is normalized images.

Definition

Assembly: DynamsoftDocumentNormalizer.xcframework

  • Objective-C
  • Swift
  1. @interface DSNormalizedImagesUnit: DSIntermediateResultUnit
    
  2. class NormalizedImagesUnit: IntermediateResultUnit
    

Methods

Methods Description
getNormalizedImages Get an array of DSNormalizedImageElement that represent all the normalized images.
getCount Get the number of normalized images.
getNormalizedImage Get the DSNormalizedImageElement at the specified index.
removeAllNormalizedImages Remove all normalized images.
setNormalizedImage Set the DSNormalizedImageElement at the specified index.

getNormalizedImages

Get an array of DSNormalizedImageElement that represent all the normalized images.

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

Return Value

An array of DSNormalizedImageElement that represent all the normalized images.

getCount

Get the number of normalized images.

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

Return Value

The number of normalized images.

getNormalizedImage

Get the DSNormalizedImageElement at the specified index.

  • Objective-C
  • Swift
  1. -(nullable DSNormalizedImageElement*)getNormalizedImage:(NSInteger)index;
    
  2. func getNormalizedImage(index: Int) -> NormalizedImageElement?
    

Parameters

[in] index: The index of the normalized image.

Return Value

The DSNormalizedImageElement at the specified index.

removeAllNormalizedImages

Remove all normalized images.

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

setNormalizedImage

Set the DSNormalizedImageElement at the specified index.

  • Objective-C
  • Swift
  1. -(NSInteger)setNormalizedImage:(DSNormalizedImageElement*)element
         matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;
    
  2. func setNormalizedImage(element: NormalizedImageElement, matrixToOriginalImage: CGAffineTransform) -> Int
    

Parameters

[in] element: The normalized image 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