ailiaFeatureExtractorMatch method

int ailiaFeatureExtractorMatch(
  1. Pointer<AILIAFeatureExtractor> fextractor,
  2. Pointer<Float> distance,
  3. int distace_type,
  4. Pointer<Void> feature1,
  5. int feature1_size,
  6. Pointer<Void> feature2,
  7. int feature2_size
)

~japanese @brief 特徴間の距離を計算します。 @param fextractor 特徴抽出オブジェクトポインタ @param distance 特徴間距離 @param distance_type 特徴間距離の種別 @param feature1 一方の特徴の格納先ポインタ(numeric型) @param feature1_size dstのサイズ(byte) @param feature2 他方の特徴の格納先ポインタ(numeric型) @param feature2_size dstのサイズ(byte) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。

~english @brief Computes distances in feature space. @param fextractor A feature extraction instance pointer @param distance A distance in feature space @param distance_type The type of the distance in feature space @param feature1 A pointer to the storage location of one feature (numeric type) @param feature1_size The size of the feature1 (bytes) @param feature2 A pointer to the storage location of the other feature (numeric type) @param feature2_size The size of the feature2 (bytes) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise.

Implementation

int ailiaFeatureExtractorMatch(
  ffi.Pointer<AILIAFeatureExtractor> fextractor,
  ffi.Pointer<ffi.Float> distance,
  int distace_type,
  ffi.Pointer<ffi.Void> feature1,
  int feature1_size,
  ffi.Pointer<ffi.Void> feature2,
  int feature2_size,
) {
  return _ailiaFeatureExtractorMatch(
    fextractor,
    distance,
    distace_type,
    feature1,
    feature1_size,
    feature2,
    feature2_size,
  );
}