CEnhancedGrayscaleImageUnit
The CEnhancedGrayscaleImageUnit class represents an intermediate result unit that contains an enhanced grayscale image data. Gray enhancement methods include gray equalization, gray smoothing, gray sharpening and smoothing.
Definition
Namespace: dynamsoft::intermediate_results
Assembly: DynamsoftCore
Inheritance: CIntermediateResultUnit -> CEnhancedGrayscaleImageUnit
class CEnhancedGrayscaleImageUnit : public CIntermediateResultUnit
Methods
| Method | Description |
|---|---|
GetImageData |
Gets the enhanced grayscale image data. |
SetImageData |
Sets the enhanced grayscale image data. |
| Methods Inherited from CIntermediateResultUnit: | |
GetHashId |
Gets the hash ID of the unit. |
GetOriginalImageHashId |
Gets the hash ID of the original image. |
GetOriginalImageTag |
Gets the 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 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 CTransformMatrixType. |
SetTransformMatrix |
Sets the transformation matrix via CTransformMatrixType. |
GetImageData
Gets the enhanced grayscale image data.
virtual const CImageData* GetImageData() const
Return value
Returns a const pointer to the CImageData object that contains the enhanced grayscale image data. You don’t need to release the memory pointed to by the returned pointer.
See Also
SetImageData
Sets the enhanced grayscale image data.
Parameters
The image data to set.
Return value
Returns 0 if succeeds, nonzero otherwise.
virtual int SetImageData(const CImageData* imgData) = 0;
See Also