ailia  1.5.0.0
ailia_feature_extractor.h
Go to the documentation of this file.
1 
14 #if !defined(INCLUDED_AILIA_FEATURE_EXTRACTOR)
15 #define INCLUDED_AILIA_FEATURE_EXTRACTOR
16 
17 /* コアライブラリ */
18 
19 #include "ailia.h"
20 #include "ailia_format.h"
21 
22 /* 呼び出し規約 */
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /****************************************************************
29  * 特徴抽出オブジェクトのインスタンス
30  **/
31 
32 struct AILIAFeatureExtractor;
33 
34 /****************************************************************
35  * 距離設定
36  **/
37 
47 #define AILIA_FEATURE_EXTRACTOR_DISTANCE_L2NORM (0)
48 
72 int AILIA_API ailiaCreateFeatureExtractor(struct AILIAFeatureExtractor** fextractor, struct AILIANetwork* net, unsigned int format, unsigned int channel, unsigned int range, const char* layer_name);
73 
83 void AILIA_API ailiaDestroyFeatureExtractor(struct AILIAFeatureExtractor* fextractor);
84 
112 int AILIA_API ailiaFeatureExtractorCompute(struct AILIAFeatureExtractor* fextractor, void* dst, unsigned int dst_size, const void* src, unsigned int src_stride, unsigned int src_width, unsigned int src_height, unsigned int src_format);
113 
139 int AILIA_API ailiaFeatureExtractorMatch(struct AILIAFeatureExtractor* fextractor, float* distance, unsigned int distance_type, const void* feature1, unsigned int feature1_size, const void* feature2, unsigned int feature2_size);
140 
141 #ifdef __cplusplus
142 }
143 #endif
144 #endif /* !defined(INCLUDED_AILIA_FEATURE_EXTRACTOR) */
inference library
#define AILIA_API
Definition: ailia.h:28
void AILIA_API ailiaDestroyFeatureExtractor(struct AILIAFeatureExtractor *fextractor)
It destroys the feature extraction instance.
int AILIA_API ailiaFeatureExtractorMatch(struct AILIAFeatureExtractor *fextractor, float *distance, unsigned int distance_type, const void *feature1, unsigned int feature1_size, const void *feature2, unsigned int feature2_size)
Computes distances in feature space.
int AILIA_API ailiaFeatureExtractorCompute(struct AILIAFeatureExtractor *fextractor, void *dst, unsigned int dst_size, const void *src, unsigned int src_stride, unsigned int src_width, unsigned int src_height, unsigned int src_format)
Performs feature extraction.
int AILIA_API ailiaCreateFeatureExtractor(struct AILIAFeatureExtractor **fextractor, struct AILIANetwork *net, unsigned int format, unsigned int channel, unsigned int range, const char *layer_name)
Creates a feature extraction instance.
AILIA format definition and conversion.