Table of contents

IntermediateResultUnit

The IntermediateResultUnit class represents an intermediate result unit used in image processing. It is an abstract base class with multiple subclasses, each representing a different type of unit such as pre-detected regions, localized barcodes, decoded barcodes, localized text lines, binary image, gray image, etc.

Definition

Namespace: Dynamsoft.Core.intermediate_results

class IntermediateResultUnit : IDisposable 

Methods

Method Description
GetHashId Gets the hash ID of the unit.
GetOriginalImageHashId Gets the hash ID of the original image.
GetOriginalImageTag Gets the image tag of the original image.
GetIntermediateResultUnitType Gets the type of the intermediate result unit.
Clone Creates a copy of the intermediate result unit.
GetTransformMatrix Gets the transformation matrix via EnumTransformMatrixType.
Replace Replaces the IntermediateResultUnit object to the specified IntermediateResultUnit object.
GetUsageCount Gets the usage count of the intermediate result.

GetHashId

Gets the hash ID of the intermediate result unit.

string GetHashId()

Return value

Returns the hash ID of the unit.

GetOriginalImageHashId

Gets the hash ID of the original image.

string GetOriginalImageHashId()

Return value

Returns the hash ID of the original image.

GetOriginalImageTag

Gets the image tag of the original image.

ImageTag GetOriginalImageTag()

Return value

Returns the image tag of the original image.

See Also

ImageTag

GetIntermediateResultUnitType

Gets the type of the intermediate result unit.

EnumIntermediateResultUnitType GetIntermediateResultUnitType()

Return value

Returns the type of the intermediate result unit.

See Also

EnumIntermediateResultUnitType

Clone

Creates a copy of the intermediate result unit.

virtual IntermediateResultUnit Clone()

Return value

Returns a copy of the intermediate result unit.

GetTransformMatrix

Gets the transformation matrix via EnumTransformMatrixType.

double[] GetTransformMatrix(EnumTransformMatrixType matrixType)

Parameters

[in] matrixType: The transform matrix type.

The corresponding transformation matrices are as follows:

  • local image to original image
  • original image to local image
  • rotated image to original image
  • original image to rotated image

Return value

A double array which represents the rotation transform matrix.

See Also

EnumTransformMatrixType

Replace

Replaces the specified IntermediateResultUnit object with the current IntermediateResultUnit object.

int Replace(IntermediateResultUnit unit)

Parameters

unit The IntermediateResultUnit object to be replaced.

Return value

Returns 0 if succeeds, nonzero otherwise.

GetUsageCount

Gets the usage count of the intermediate result.

int GetUsageCount();

Return value

Returns the usage count of the intermediate result.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: