[arrayfire] 100/248: Added C++ API for GLOH

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Nov 17 15:54:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch dfsg-clean
in repository arrayfire.

commit 746a40f1781e734df837eee81ea21e99a959576d
Author: Peter Andreas Entschev <peter at arrayfire.com>
Date:   Wed Oct 7 16:15:11 2015 -0400

    Added C++ API for GLOH
---
 src/api/cpp/sift.cpp | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/src/api/cpp/sift.cpp b/src/api/cpp/sift.cpp
index 74036dc..8ae3ac6 100644
--- a/src/api/cpp/sift.cpp
+++ b/src/api/cpp/sift.cpp
@@ -31,4 +31,21 @@ void sift(features& feat, array& desc, const array& in,
     desc = array(temp_desc);
 }
 
+void gloh(features& feat, array& desc, const array& in,
+          const unsigned n_layers, const float contrast_thr,
+          const float edge_thr, const float init_sigma,
+          const bool double_input, const float img_scale,
+          const float feature_ratio)
+{
+    af_features temp_feat;
+    af_array temp_desc = 0;
+    AF_THROW(af_gloh(&temp_feat, &temp_desc, in.get(), n_layers, contrast_thr,
+                     edge_thr, init_sigma, double_input, img_scale, feature_ratio));
+
+    dim_t num = 0;
+    AF_THROW(af_get_features_num(&num, temp_feat));
+    feat = features(temp_feat);
+    desc = array(temp_desc);
+}
+
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git



More information about the debian-science-commits mailing list