ImageProcessor类的色域转换接口,使用该接口申请的Image内存无需用户管理,由内部管理释放。当前接口仅能够在Atlas 推理系列产品和Atlas 800I A2推理产品环境上调用。
1 | convert_format(inputImage: Image, outputFormat: image_format) |
参数名 |
类型 |
说明 |
---|---|---|
inputImage |
Image类 |
输入转换前的Image类。 decode接口和其他VPC接口获取的Image类可以直接作为输入。
|
outputFormat |
image_format枚举类 |
色域转换的目标格式,支持YUV_SP_420、YVU_SP_420、RGB_888、BGR_888四种格式对应的枚举类。
|
返回转换输出Image对象。