GetExtraValAttrByLabel

API definition

APP_ERROR GetExtraValAttrByLabel(int64_t count, const int64_t *labels, ExtraValAttr *extraVal) const;

Function

Obtains the additional attributes of a specified label feature.

Input

int64_t count: number of features to be obtained.

const int64_t *labels: feature label.

Output

ExtraValAttr *extraVal: additional attribute.

Return value

APP_ERROR: return status. For details, see Return Code Reference.

Restrictions

  • Value range of count: [1, 1e6]
  • The length of labels must be count, and each element must be unique and exist in the database. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown. If the input labels parameter does not exist in the database, the value of val of the additional attributes returned by the API is INT16_MIN.
  • The length of extraVal must be count. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown.