image(inputPath, deviceId, decodeFormat)
Function Usage
Decodes and reads images.
For details about the input and output formats and alignment modes, see decode(inputPath, decodeFormat).
Input Parameter Description
Parameter |
Type |
Description |
|---|---|---|
inputPath |
string |
Image path |
deviceId |
int |
Device ID |
decodeFormat |
image_format enumerations |
Decoding format of an input image |
Output Parameter Description
Image object
Exception Throwing Interface
If the ImageProcessor fails to be created or an image fails to be decoded, a runtime exception occurs.
Parent topic: Function Method