DSNormalizedImagesUnit
The DSNormalizedImagesUnit
class represents an intermediate result unit whose type is normalized images.
Definition
Assembly: DynamsoftDocumentNormalizer.xcframework
- Objective-C
- Swift
@interface DSNormalizedImagesUnit: DSIntermediateResultUnit
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
-(nullable NSArray<DSNormalizedImageElement*>*)getNormalizedImages;
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
-(NSInteger)getCount;
func getCount() -> Int
Return Value
The number of normalized images.
getNormalizedImage
Get the DSNormalizedImageElement
at the specified index.
- Objective-C
- Swift
-(nullable DSNormalizedImageElement*)getNormalizedImage:(NSInteger)index;
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
-(void)removeAllNormalizedImages;
func removeAllNormalizedImages()
setNormalizedImage
Set the DSNormalizedImageElement
at the specified index.
- Objective-C
- Swift
-(NSInteger)setNormalizedImage:(DSNormalizedImageElement*)element matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;
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.