Skip to content

Commit

Permalink
add mini cvsteer package
Browse files Browse the repository at this point in the history
A concise implementation of separable steerable filters via Freeman and Adelson, including second derivative of Gaussian and its Hilbert transform, implemented with the OpenCV C++ API
  • Loading branch information
headupinclouds committed Jan 27, 2018
1 parent c8d99cc commit 187f3ee
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ hunter_config(crashup VERSION 0.0.2)
hunter_config(cryptopp VERSION 5.6.5-p0)
hunter_config(cub VERSION 1.7.4-p0)
hunter_config(cvmatio VERSION 1.0.28)
hunter_config(cvsteer VERSION 0.1.1)
hunter_config(cxxopts VERSION 1.0.0-p0)
hunter_config(czmq VERSION 4.0.2-p1)
hunter_config(damageproto VERSION 1.2.1)
Expand Down
26 changes: 26 additions & 0 deletions cmake/projects/cvsteer/hunter.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) 2016-2018, Ruslan Baratov
# Copyright (c) 2018, David Hirvonen
# All rights reserved.

# !!! DO NOT PLACE HEADER GUARDS HERE !!!

include(hunter_add_version)
include(hunter_cacheable)
include(hunter_cmake_args)
include(hunter_download)
include(hunter_pick_scheme)

hunter_add_version(
PACKAGE_NAME
cvsteer
VERSION
0.1.1
URL
"https://github.com/headupinclouds/cvsteer/archive/v0.1.1.tar.gz"
SHA1
b54b096910c0947e1af125e134b2511b25dc847d
)

hunter_pick_scheme(DEFAULT url_sha1_cmake)
hunter_cacheable(cvsteer)
hunter_download(PACKAGE_NAME cvsteer)
18 changes: 18 additions & 0 deletions docs/packages/pkg/cvsteer.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
.. spelling::

cvsteer

.. index:: computer-vision ; cvsteer

.. _pkg.cvsteer:

cvsteer
=======

- `Official <http://github.com/headupinclouds/cvsteer>`__
- `Example <https://github.com/ruslo/hunter/blob/master/examples/cvsteer/CMakeLists.txt>`__

.. literalinclude:: /../examples/cvsteer/CMakeLists.txt
:language: cmake
:start-after: # DOCUMENTATION_START {
:end-before: # DOCUMENTATION_END }
17 changes: 17 additions & 0 deletions examples/cvsteer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2016-2018, Ruslan Baratov
# Copyright (c) 2018, David Hirvonen
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-cvsteer)

hunter_add_package(cvsteer)
find_package(cvsteer CONFIG REQUIRED)

add_executable(foo foo.cpp)
target_link_libraries(foo cvsteer::cvsteer)
6 changes: 6 additions & 0 deletions examples/cvsteer/foo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#include <cvsteer/SteerableFiltersG2.h>

int main() {
cv::Mat1f image = cv::Mat1f::zeros(128, 128);
fa::SteerableFiltersG2 filters(image, 4, 0.67f);
}

0 comments on commit 187f3ee

Please sign in to comment.