42 AFAPI features
fast(
const array& in,
const float thr=20.0f,
const unsigned arc_length=9,
43 const bool non_max=
true,
const float feature_ratio=0.05,
44 const unsigned edge=3);
46 #if AF_API_VERSION >= 31 74 const float min_response=1e5f,
const float sigma=1.f,
75 const unsigned block_size=0,
const float k_thr=0.04f);
101 const float fast_thr=20.f,
const unsigned max_feat=400,
102 const float scl_fctr=1.5f,
const unsigned levels=4,
103 const bool blur_img=
false);
105 #if AF_API_VERSION >= 31 138 const float contrast_thr=0.04f,
const float edge_thr=10.f,
139 const float init_sigma=1.6f,
const bool double_input=
true,
140 const float intensity_scale=0.00390625f,
const float feature_ratio=0.05f);
143 #if AF_API_VERSION >= 32 176 const float contrast_thr=0.04f,
const float edge_thr=10.f,
177 const float init_sigma=1.6f,
const bool double_input=
true,
178 const float intensity_scale=0.00390625f,
const float feature_ratio=0.05f);
207 const dim_t dist_dim=0,
const unsigned n_dist=1);
209 #if AF_API_VERSION >= 31 236 const dim_t dist_dim=0,
const unsigned n_dist=1,
257 #if AF_API_VERSION >= 31 275 const unsigned radius=3,
276 const float diff_thr=32.0f,
277 const float geom_thr=10.0f,
278 const float feature_ratio=0.05f,
279 const unsigned edge=3);
282 #if AF_API_VERSION >= 31 296 #if AF_API_VERSION >= 32 324 const float inlier_thr=3.f,
const unsigned iterations=1000,
const dtype otype=
f32);
360 const bool non_max,
const float feature_ratio,
const unsigned edge);
362 #if AF_API_VERSION >= 31 390 const float min_response,
const float sigma,
391 const unsigned block_size,
const float k_thr);
417 const float fast_thr,
const unsigned max_feat,
const float scl_fctr,
418 const unsigned levels,
const bool blur_img);
420 #if AF_API_VERSION >= 31 453 const unsigned n_layers,
const float contrast_thr,
const float edge_thr,
454 const float init_sigma,
const bool double_input,
455 const float intensity_scale,
const float feature_ratio);
458 #if AF_API_VERSION >= 32 491 const unsigned n_layers,
const float contrast_thr,
492 const float edge_thr,
const float init_sigma,
const bool double_input,
493 const float intensity_scale,
const float feature_ratio);
519 const dim_t dist_dim,
const unsigned n_dist);
521 #if AF_API_VERSION >= 31 548 const dim_t dist_dim,
const unsigned n_dist,
572 #if AF_API_VERSION >= 31 592 const float diff_thr,
const float geom_thr,
593 const float feature_ratio,
const unsigned edge);
596 #if AF_API_VERSION >= 31 612 #if AF_API_VERSION >= 32 643 const unsigned iterations,
const af_dtype otype);
AFAPI af_err af_harris(af_features *out, const af_array in, const unsigned max_corners, const float min_response, const float sigma, const unsigned block_size, const float k_thr)
C Interface for Harris corner detector.
Match based on Sum of Squared Differences (SSD)
Definition: defines.h:279
Definition: algorithm.h:14
AFAPI array dog(const array &in, const int radius1, const int radius2)
C++ Interface wrapper for Difference of Gaussians.
AFAPI af_err af_orb(af_features *feat, af_array *desc, const af_array in, const float fast_thr, const unsigned max_feat, const float scl_fctr, const unsigned levels, const bool blur_img)
C Interface for ORB feature descriptor.
AFAPI void orb(features &feat, array &desc, const array &image, const float fast_thr=20.f, const unsigned max_feat=400, const float scl_fctr=1.5f, const unsigned levels=4, const bool blur_img=false)
C++ Interface for ORB feature descriptor.
AFAPI void homography(array &H, int &inliers, const array &x_src, const array &y_src, const array &x_dst, const array &y_dst, const af_homography_type htype=AF_HOMOGRAPHY_RANSAC, const float inlier_thr=3.f, const unsigned iterations=1000, const dtype otype=f32)
C++ Interface for Homography estimation.
void * af_features
Definition: features.h:13
af_homography_type
Definition: defines.h:361
AFAPI features harris(const array &in, const unsigned max_corners=500, const float min_response=1e5f, const float sigma=1.f, const unsigned block_size=0, const float k_thr=0.04f)
C++ Interface for Harris corner detector.
AFAPI void nearestNeighbour(array &idx, array &dist, const array &query, const array &train, const dim_t dist_dim=0, const unsigned n_dist=1, const af_match_type dist_type=AF_SSD)
C++ Interface wrapper for Nearest Neighbour.
AFAPI af_err af_dog(af_array *out, const af_array in, const int radius1, const int radius2)
C Interface wrapper for Difference of Gaussians.
static af::array array(af::dim4 idims, cl_mem buf, af::dtype type, bool retain=false)
Create an af::array object from an OpenCL cl_mem buffer.
Definition: opencl.h:329
Computes homography using RANSAC.
Definition: defines.h:362
af_err
Definition: defines.h:63
AFAPI features susan(const array &in, const unsigned radius=3, const float diff_thr=32.0f, const float geom_thr=10.0f, const float feature_ratio=0.05f, const unsigned edge=3)
C++ Interface for SUSAN corner detector.
AFAPI af_err af_hamming_matcher(af_array *idx, af_array *dist, const af_array query, const af_array train, const dim_t dist_dim, const unsigned n_dist)
C Interface wrapper for Hamming matcher.
long long dim_t
Definition: defines.h:50
AFAPI features fast(const array &in, const float thr=20.0f, const unsigned arc_length=9, const bool non_max=true, const float feature_ratio=0.05, const unsigned edge=3)
C++ Interface for FAST feature detector.
AFAPI af_err af_fast(af_features *out, const af_array in, const float thr, const unsigned arc_length, const bool non_max, const float feature_ratio, const unsigned edge)
C Interface for FAST feature detector.
#define AFAPI
Definition: defines.h:31
AFAPI void gloh(features &feat, array &desc, const array &in, const unsigned n_layers=3, const float contrast_thr=0.04f, const float edge_thr=10.f, const float init_sigma=1.6f, const bool double_input=true, const float intensity_scale=0.00390625f, const float feature_ratio=0.05f)
C++ Interface for SIFT feature detector and GLOH descriptor.
Match based on Sum of Absolute Differences (SAD)
Definition: defines.h:276
AFAPI af_err af_match_template(af_array *out, const af_array search_img, const af_array template_img, const af_match_type m_type)
C Interface for image template matching.
AFAPI af_err af_nearest_neighbour(af_array *idx, af_array *dist, const af_array query, const af_array train, const dim_t dist_dim, const unsigned n_dist, const af_match_type dist_type)
C Interface wrapper for Nearest Neighbour.
AFAPI void hammingMatcher(array &idx, array &dist, const array &query, const array &train, const dim_t dist_dim=0, const unsigned n_dist=1)
C++ Interface wrapper for Hamming matcher.
AFAPI void sift(features &feat, array &desc, const array &in, const unsigned n_layers=3, const float contrast_thr=0.04f, const float edge_thr=10.f, const float init_sigma=1.6f, const bool double_input=true, const float intensity_scale=0.00390625f, const float feature_ratio=0.05f)
C++ Interface for SIFT feature detector and descriptor.
void * af_array
Definition: defines.h:222
af_match_type matchType
Definition: defines.h:405
32-bit floating point values
Definition: defines.h:196
AFAPI af_err af_susan(af_features *out, const af_array in, const unsigned radius, const float diff_thr, const float geom_thr, const float feature_ratio, const unsigned edge)
C Interface for SUSAN corner detector.
AFAPI af_err af_sift(af_features *feat, af_array *desc, const af_array in, const unsigned n_layers, const float contrast_thr, const float edge_thr, const float init_sigma, const bool double_input, const float intensity_scale, const float feature_ratio)
C++ Interface for SIFT feature detector and descriptor.
AFAPI array matchTemplate(const array &searchImg, const array &templateImg, const matchType mType=AF_SAD)
C++ Interface for image template matching.
AFAPI af_err af_gloh(af_features *feat, af_array *desc, const af_array in, const unsigned n_layers, const float contrast_thr, const float edge_thr, const float init_sigma, const bool double_input, const float intensity_scale, const float feature_ratio)
C++ Interface for SIFT feature detector and GLOH descriptor.
AFAPI af_err af_homography(af_array *H, int *inliers, const af_array x_src, const af_array y_src, const af_array x_dst, const af_array y_dst, const af_homography_type htype, const float inlier_thr, const unsigned iterations, const af_dtype otype)
C Interface wrapper for Homography estimation.
af_dtype
Definition: defines.h:195
af_match_type
Definition: defines.h:275
af_dtype dtype
Definition: defines.h:400