|
| static int | ailiaCreateFeatureExtractor (ref IntPtr fextractor, IntPtr net, UInt32 format, UInt32 channel, UInt32 range, string layer_name) |
| | Create a feature extraction object. More...
|
| |
| static void | ailiaDestroyFeatureExtractor (IntPtr fextractor) |
| | Destroy feature extractor object. More...
|
| |
| static int | ailiaFeatureExtractorCompute (IntPtr fextractor, IntPtr dst, UInt32 dst_size, IntPtr src, UInt32 src_stride, UInt32 src_width, UInt32 src_height, UInt32 src_format) |
| | Extract features. More...
|
| |
| static int | ailiaFeatureExtractorMatch (IntPtr fextractor, ref float distance, UInt32 distace_type, IntPtr feature1, UInt32 feature1_size, IntPtr feature2, UInt32 feature2_size) |
| | Calculate the distance between features. More...
|
| |
◆ ailiaCreateFeatureExtractor()
| static int ailia.AiliaFeatureExtractor.ailiaCreateFeatureExtractor |
( |
ref IntPtr |
fextractor, |
|
|
IntPtr |
net, |
|
|
UInt32 |
format, |
|
|
UInt32 |
channel, |
|
|
UInt32 |
range, |
|
|
string |
layer_name |
|
) |
| |
Create a feature extraction object.
- Parameters
-
| fextractor | Feature extraction object pointer |
| net | Network object pointer |
| format | Image format of the network (AILIA_NETWORK_IMAGE_FORMAT_*) |
| channel | Image channel of the network (AILIA_NETWORK_IMAGE_CHANNEL_*) |
| range | Image range of the network (AILIA_NETWORK_IMAGE_RANGE_*) |
| layer_name | Name name of layer corresponding to feature (fc1 for VGG16, null for final layer) |
- Returns
- Returns AILIA_STATUS_SUCCESS if successful, otherwise returns error code.
◆ ailiaDestroyFeatureExtractor()
| static void ailia.AiliaFeatureExtractor.ailiaDestroyFeatureExtractor |
( |
IntPtr |
fextractor | ) |
|
Destroy feature extractor object.
- Parameters
-
| fextractor | Ffeature extractor object pointer |
◆ ailiaFeatureExtractorCompute()
| static int ailia.AiliaFeatureExtractor.ailiaFeatureExtractorCompute |
( |
IntPtr |
fextractor, |
|
|
IntPtr |
dst, |
|
|
UInt32 |
dst_size, |
|
|
IntPtr |
src, |
|
|
UInt32 |
src_stride, |
|
|
UInt32 |
src_width, |
|
|
UInt32 |
src_height, |
|
|
UInt32 |
src_format |
|
) |
| |
Extract features.
- Parameters
-
| fextractor | Feature extraction object pointer |
| dst | Pointer to feature storage (type numeric) |
| dst_size | Size of dst (byte) |
| src | image Data (32bpp) |
| src_stride | Number of bytes per line |
| src_width | Image width |
| src_height | Image height |
| src_format | Image format (AILIA_IMAGE_FORMAT_*) |
- Returns
- Returns AILIA_STATUS_SUCCESS if successful, otherwise returns an error code.
◆ ailiaFeatureExtractorMatch()
| static int ailia.AiliaFeatureExtractor.ailiaFeatureExtractorMatch |
( |
IntPtr |
fextractor, |
|
|
ref float |
distance, |
|
|
UInt32 |
distace_type, |
|
|
IntPtr |
feature1, |
|
|
UInt32 |
feature1_size, |
|
|
IntPtr |
feature2, |
|
|
UInt32 |
feature2_size |
|
) |
| |
Calculate the distance between features.
- Parameters
-
| fextractor | Feature extraction object pointer |
| distance | Distance between features |
| distance_type | Type of distance between features |
| feature1 | Pointer to feature storage (type numeric) |
| feature1_size | Size of dst (in bytes) |
| feature2 | Pointer to store features (type numeric) |
| feature2_size | Size of dst (byte) |
- Returns
- If successful, return AILIA_STATUS_SUCCESS, otherwise return error code.
◆ AILIA_FEATURE_EXTRACTOR_DISTANCE_L2NORM
| const Int32 ailia.AiliaFeatureExtractor.AILIA_FEATURE_EXTRACTOR_DISTANCE_L2NORM =(0) |
|
static |
The documentation for this class was generated from the following file: