Skip to main content »

Trinity College Dublin

Dublin University Crest Computer Science Department > Dr. Kenneth Dawson-Howe > Practical Vision textbook Trinity College Crest
 Home
 Code Samples
 
 FULL CODE DOWNLOAD
 1. Introduction
 2. Images
 3. Histograms
 4. Binary Vision
 5. Geometric
 6. Edges
 7. Features
 8. Recognition
 9. Video
 OpenCV information
 Lecture notes
 Application Problems
 

Code samples.

The book contains a large number of OpenCV code snippets (originally for OpenCV v2.4.10). v3.0.0 changed the way in which some of the functionality is accessed and hence new versions of the code are are presented on this page. The code is all part of a larger Microsoft Developer Studio project all files for which are included in a single ZIP file for v4.1.1. This ZIP file includes all of the images and videos necessary for the program to run. Sample output for each section (2-9) can be viewed by clicking on the relevant images. The ZIP file for v2.4.10 and the ZIP file for v3.2.0 are also still available.

1. main.cpp
Utilities.cpp
Utilities.h
2. Images.cpp
3. Histograms.cpp
4. Binary.cpp
5. Geometric.cpp
CameraCalibration.cpp
6. Edges.cpp
7. Features.cpp
8. Recognition.cpp
9.
© 2021 Reproduced by permission of
Dr. James Ferryman, University of Reading
Video.cpp

Copyright © 2021 Wiley & Kenneth Dawson-Howe. Unless indicated otherwise, the rights to the materials presented here are held by Wiley and/or Kenneth Dawson-Howe. All rights reserved with the following exceptions:

  • Permission is granted to reuse the code presented here for teaching purposes subject to the textbook ("A Practical Introduction to Computer Vision with OpenCV" by Kenneth Dawson-Howe, Wiley 2014.) being included as a recommended text on any associated course, and to an appropriate copyright notice being reproduced along with the material.
Email  kdawson @ cs.tcd.ie