acl.himpi.vpc_calc_hist
This API will be deprecated in future releases. Use acl.himpi.vpc_calc_hist_v2 instead.
C Prototype |
hi_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 Function |
hist_config, task_id, ret = acl.himpi.vpc_calc_hist(chn, source_pic, milli_sec) |
Function Usage |
Calculates a histogram of image channels. This API is asynchronous. The Atlas 200/300/500 Inference Product does not support this API in the current version. The Atlas Training Series Product does not support this API in the current version. |
Input Description |
chn: int, image processing channel ID. source_pic: source image information.
milli_sec: int, timeout interval (ms).
|
Return Value |
hist_config: result histogram. hist_config is a struct that contains three arrays, which store the distribution (0–255) of the three components of each image. This API will be discarded. The value of hist_config obtained by calling this API is all 0s. Replace it with acl.himpi.vpc_calc_hist_v2. task_id: task ID, used to identify a task. ret: int, error code.
|