[arrayfire] 75/408: Added C++ API for Harris corner detector
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Sep 21 19:11:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit 4049083ca3474f454d898c926589fd5ce91a91e0
Author: Peter Andreas Entschev <peter at arrayfire.com>
Date: Thu Jul 2 13:37:58 2015 -0400
Added C++ API for Harris corner detector
---
src/api/cpp/harris.cpp | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/src/api/cpp/harris.cpp b/src/api/cpp/harris.cpp
new file mode 100644
index 0000000..849011d
--- /dev/null
+++ b/src/api/cpp/harris.cpp
@@ -0,0 +1,27 @@
+/*******************************************************
+ * Copyright (c) 2015, ArrayFire
+ * All rights reserved.
+ *
+ * This file is distributed under 3-clause BSD license.
+ * The complete license agreement can be obtained at:
+ * http://arrayfire.com/licenses/BSD-3-Clause
+ ********************************************************/
+
+#include <af/vision.h>
+#include <af/array.h>
+#include "error.hpp"
+
+namespace af
+{
+
+features harris(const array& in, const unsigned max_corners,
+ const float min_response, const float sigma,
+ const unsigned block_size, const float k_thr)
+{
+ af_features temp;
+ AF_THROW(af_harris(&temp, in.get(), max_corners,
+ min_response, sigma, block_size, k_thr));
+ return features(temp);
+}
+
+}
--
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