ImageProcessor
Function Usage
Constructor of the ImageProcessor class. If the construction fails due to insufficient memory or an unidentified processor, the "std::runtime_error" exception occurs.
For image processing APIs (excepting the API for image decoding), the memory data stored in the Image class needs to be input on the device. The memory data of the Image class object obtained through APIs of the ImageProcessor class is located on the device, which does not need users to manage or destroy.
Prototype
ImageProcessor(const int32_t deviceId = 0);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
deviceId |
Input |
Processor deployed for image processing. The default value is 0. Value range: [0, Number of identified processors - 1]. |
Parent topic: ImageProcessor