aclfvCreateFeatureInfo
Applicable Products
Product |
Supported |
|---|---|
× |
|
× |
|
× |
|
× |
|
√ |
|
× |
Description
Creates data of the aclfvFeatureInfo type that indicates the feature description. To destroy data of the aclfvFeatureInfo type, call aclfvDestroyFeatureInfo.
Prototype
1 | aclfvFeatureInfo *aclfvCreateFeatureInfo(uint32_t id0, uint32_t id1, uint32_t offset, uint32_t featureLen, uint32_t featureCount, uint8_t *featureData, uint32_t featureDataLen) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
id0 |
Input |
ID of the level-1 repository. The value ranges from 0 to 1023 and defaults to 0 in N:M mode. A repository is identified by id0 and id1 together. |
id1 |
Input |
ID of the level-2 repository. The value ranges from 0 to 1023 and defaults to 0 in N:M mode. A repository is identified by id0 and id1 together. |
offset |
Input |
Offset of the first feature in the repository. The offset value must equal the number of features already added to the repository. In N:M mode, the default value is 0. |
featureLen |
Input |
Feature length, which is fixed at 36 bytes. The system verifies the length internally. |
featureCount |
Input |
Number of features, up to 1 million in 1:N mode or up to 10 million in N:M mode. |
featureData |
Input |
Pointer to the feature values, which are stored contiguously based on the feature length. The first 4 bytes of each feature are all zeros. |
featureDataLen |
Input |
Length of the memory allocated for the featureData pointer, which is used for verification. |
Return Value
- Success: a pointer to data of the aclfvFeatureInfo type
- Failure: nullptr