Table of contents

CIntermediateResultUnit

The CIntermediateResultUnit 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::intermediate_results

Assembly: DynamsoftCore

class CIntermediateResultUnit 

Methods Summary

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.
GetType Gets the type of the intermediate result unit.
Clone Creates a copy of the intermediate result unit.
SetHashId Sets the hash ID of the unit.
SetOriginalImageHashId Sets the hash ID of the original image.
SetOriginalImageTag Sets the image tag of the original image.
Retain Increases the reference count of the unit.
Release Decreases the reference count of the unit.
GetTransformMatrix Gets the transformation matrix via TransformMatrixType.
SetTransformMatrix Sets the transformation matrix via TransformMatrixType.
Replace Replaces the CIntermediateResultUnit object to the specified CIntermediateResultUnit object.

GetHashId

Gets the hash ID of the intermediate result unit.

const char* GetHashId() const

Return value

Returns the hash ID of the unit.

GetOriginalImageHashId

Gets the hash ID of the original image.

const char* GetOriginalImageHashId() const

Return value

Returns the hash ID of the original image.

GetOriginalImageTag

Gets the image tag of the original image.

const CImageTag* GetOriginalImageTag() const

Return value

Returns the image tag of the original image.

See Also

CImageTag

GetType

Gets the type of the intermediate result unit.

virtual IntermediateResultUnitType GetType() const = 0

Return value

Returns the type of the intermediate result unit.

See Also

IntermediateResultUnitType

Clone

Creates a copy of the intermediate result unit.

virtual CIntermediateResultUnit* Clone() const = 0

Return value

Returns a copy of the intermediate result unit.

See Also

CIntermediateResultUnit

SetHashId

Sets the hash ID of the intermediate result unit.

void SetHashId(const char* _hashId)

Parameters

[in] _hashId The hash ID to set.

SetOriginalImageHashId

Sets the hash ID of the original image.

void SetOriginalImageHashId(const char* _originalImageHashId)

Parameters

[in] _originalImageHashId The hash ID to set.

SetOriginalImageTag

Sets the image tag of the original image.

void SetOriginalImageTag(const CImageTag* _tag)

Parameters

[in] _tag The image tag to set.

See Also

CImageTag

Retain

Increases the reference count of the intermediate result unit.

virtual CIntermediateResultUnit* Retain() = 0

Return value

Returns an object of the CIntermediateResultUnit class.

Release

Decreases the reference count of the intermediate result unit.

virtual void Release() = 0

GetTransformMatrix

Gets the transformation matrix via TransformMatrixType.

void GetTransformMatrix(TransformMatrixType matrixType, double matrix[9]) const;

Parameters

[in] matrixType: The transform matrix type.

[out] matrix A double array which represents the rotation transform matrix.

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

See Also

TransformMatrixType

SetTransformMatrix

Sets the transformation matrix via TransformMatrixType.

void SetTransformMatrix(TransformMatrixType matrixType, double matrix[9]);

Parameters

[in] matrixType: The transform matrix type.

[in] matrix A double array which represents the rotation transform matrix.

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

See Also

TransformMatrixType

Replace

Replaces the specified CIntermediateResultUnit object with the current CIntermediateResultUnit object.

virtual int Replace(CIntermediateResultUnit* unit) = 0;

Parameters

unit The CIntermediateResultUnit object to be replaced.

Return value

Returns 0 if succeeds, nonzero otherwise.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: