Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
OpenCV 4 Computer Vision Application Programming Cookbook - Fourth Edition

You're reading from  OpenCV 4 Computer Vision Application Programming Cookbook - Fourth Edition

Product type Book
Published in May 2019
Publisher Packt
ISBN-13 9781789340723
Pages 494 pages
Edition 4th Edition
Languages
Authors (2):
David Millán Escrivá David Millán Escrivá
Profile icon David Millán Escrivá
Robert Laganiere Robert Laganiere
Profile icon Robert Laganiere
View More author details

Table of Contents (17) Chapters

Preface 1. Playing with Images 2. Manipulating the Pixels 3. Processing Color Images with Classes 4. Counting the Pixels with Histograms 5. Transforming Images with Morphological Operations 6. Filtering the Images 7. Extracting Lines, Contours, and Components 8. Detecting Interest Points 9. Describing and Matching Interest Points 10. Estimating Projective Relations in Images 11. Reconstructing 3D Scenes 12. Processing Video Sequences 13. Tracking Visual Motion 14. Learning from Examples 15. OpenCV Advanced Features 16. Other Books You May Enjoy

Enabling Halide to improve efficiency

Halide is a new programming language written for high-performance image processing on new computers. Halide currently targets the following:

  • CPU architectures: X86, ARM, MIPS, Hexagon, and PowerPC
  • Operating systems: Linux, Windows, macOS, Android, iOS, and Qualcomm QuRT
  • GPU Compute APIs: CUDA, OpenCL, OpenGL, OpenGL Compute Shaders, Apple Metal, and Microsoft Direct X 12

In this recipe, we are going to show how to compile OpenCV with Halide and how to enable it in your DNN algorithms.

How to do it...

To enable Halide in OpenCV, follow these steps. It will take a while to compile it all:

  1. Download and unpack the LLVM source code from http://releases.llvm.org/4.0.0/llvm-4.0.0.src.tar.xz...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}