TransformedGrayscaleImageUnit
The TransformedGrayscaleImageUnit
class is a subclass of IntermediateResultUnit
that represents a transformed grayscale image. It may be the original grayscale image or the inverted image of the original grayscale image.
Definition
Module: dynamsoft_core
class TransformedGrayscaleImageUnit(IntermediateResultUnit)
Methods
Method | Description |
---|---|
get_image_data |
Gets the transformed grayscale image. |
set_image_data |
Sets the transformed grayscale image. |
get_image_data
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.
def get_image_data(self) -> ImageData:
Return value
Returns a ImageData
object that represents the image data of the transformed grayscale image.
See Also
set_image_data
Sets the transformed grayscale image.
def set_image_data(self, img_data: ImageData) -> int:
Parameters
img_data
The image data to set.
Return value
Returns 0 if succeeds, nonzero otherwise.
See Also