Skip to content

CMake template to show how to use Halide and OpenCV together, and create multiple Halide filters in a large library.

Notifications You must be signed in to change notification settings

SuTanTank/Halide_CMake_Demo

Repository files navigation

Halide CMake Template, work with OpenCV

This project gives a simple CMake template, which demostrates how to use Halide with an ordinary image processing library which is using OpenCV Mat as image data type.

OpenCV and Halide are found via find_package(). For Windows, usually you should set OpenCV_DIR and Halide_DIR manually.

A stand-alone HalideRuntime library is created to make sure all other filters are using this runtime to avoid linking issue on Windows. This halide library should have IMPORT_GLOBAL property such that other halide libraries can find it.

Two filters Add and Blur are defined, which shows how multiple filters are created and co-exist in a large CMake project.

About

CMake template to show how to use Halide and OpenCV together, and create multiple Halide filters in a large library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published