vpc_calc_hist
产品支持情况
产品  | 
是否支持  | 
|---|---|
√  | 
|
√  | 
|
x  | 
|
√  | 
|
√  | 
函数原型
- C函数原型
1hi_s32 hi_mpi_vpc_calc_hist(hi_vpc_chn chn, const hi_vpc_pic_info *source_pic, hi_vpc_histogram_config *hist_config, hi_u32 *task_id, hi_s32 milli_sec);
 - python函数
1hist_config, task_id, ret = acl.himpi.vpc_calc_hist(chn, source_pic, milli_sec)
 
参数说明
参数名  | 
说明  | 
|---|---|
chn  | 
int,图片处理通道号。 
  | 
source_pic  | 
dict,输入图片信息。 
  | 
milli_sec  | 
int,超时时间配置,单位是毫秒,取值范围如下。 
  | 
返回值说明
返回值  | 
说明  | 
|---|---|
hist_config  | 
dict,统计结果。 “hist_config”是一个包含3个数组的结构体,用来存放每张图像3个分量的0-255的分布情况。 该接口即将废弃,当前使用本接口获取到的“hist_config”为全0信息,请使用vpc_calc_hist_v2代替。  | 
task_id  | 
int,任务分配的ID,用来区分任务。  | 
ret  | 
int,错误码。 
  | 
父主题: VPC图像处理接口