Resource Base
Table of contents

CTransformedGrayscaleImageUnit

The CTransformedGrayscaleImageUnit class is a subclass of CIntermediateResultUnit that represents a transformed grayscale image. It may be the original grayscale image or the inverted image of the original grayscale image.

Definition

Namespace: dynamsoft::intermediate_results

Assembly: DynamsoftCore

class CTransformedGrayscaleImageUnit : public CIntermediateResultUnit 

Methods Summary

Method Description
GetImageData Gets the transformed grayscale image.
SetImageData Sets the transformed grayscale image.

Inherited Methods

The following methods are inherited from class CIntermediateResultUnit.

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.

GetImageData

Gets the image data of the transformed grayscale image. It may be the original grayscale image or the inverted image of the original grayscale image.

virtual const CImageData* GetImageData() const

Return value

Returns a const pointer to a CImageData object that represents the image data of the transformed grayscale image. You don’t need to release the memory pointed to by the returned pointer.

See Also

CImageData

SetImageData

Sets the transformed grayscale image.

Parameters

imgData The image data to set.

Return value

Returns 0 if succeeds, nonzero otherwise.

virtual int SetImageData(const CImageData* imgData) = 0;

See Also

CImageData

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version (2.2.20)
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.30
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support