vpc_calc_hist
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Function Usage
Calculates a histogram of image channels. This API is asynchronous.
This API will be deprecated in future releases. Use vpc_calc_hist_v2 instead.
Prototype
- C Prototype
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 Function
1hist_config, task_id, ret = acl.himpi.vpc_calc_hist(chn, source_pic, milli_sec)
Parameter Description
Parameter |
Description |
|---|---|
chn |
Int, channel ID for image processing.
|
source_pic |
Dict, input image information.
|
milli_sec |
Int, timeout interval, in milliseconds.
|
Return Value Description
Return Value |
Description |
|---|---|
hist_config |
Dict, statistics result. 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 vpc_calc_hist_v2. |
task_id |
Int, task ID, used to identify a task. |
ret |
Int, error code.
|