Table of contents

NormalizedImagesUnit

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

Definition

Namespace: com.dynamsoft.ddn.intermediate_results

Assembly: DynamsoftDocumentNormalizer.aar

class NormalizedImagesUnit extends IntermediateResultUnit

Methods

Methods Description
getNormalizedImages Gets an array of NormalizedImageElement.
getCount Gets the number of normalized images.
getNormalizedImage Gets a normalized image.
removeAllNormalizedImages Removes all normalized images.
setNormalizedImage Sets a normalized image.

The following methods are inherited from class IntermediateResultUnit.

Method Description
getHashId Returns the hash ID of the unit.
getOriginalImageHashId Returns the hash ID of the original image.
getOriginalImageTag Returns the image tag of the original image.
getType Returns the type of the intermediate result unit.
getTransformMatrix Returns the transformation matrix via DSTransformMatrixType.
clone Creates a copy of the intermediate result unit.
replace Replaces the content of the intermediate result unit.

getNormalizedImages

Gets an array of NormalizedImageElement.

NormalizedImageElement[] getNormalizedImages();

Return Value

The array of NormalizedImageElement.

getCount

Gets the number of normalized images.

int getCount();

Return Value

The number of normalized images.

getNormalizedImage

Gets a normalized image.

NormalizedImageElement getNormalizedImage(int index);

Return Value

A NormalizedImageElement object that represents the normalized image.

removeAllNormalizedImages

Removes all normalized images.

void removeAllNormalizedImages();

setNormalizedImage

Sets a NormalizedImageElement as the normalized image.

int setNormalizedImage(NormalizedImageElement element, Matrix matrixToOriginalImage);

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.

Is this page helpful?

YesYes NoNo

In this article: