Skip to main content »

Trinity College Dublin

Dublin University Crest Computer Science Department > Dr. Kenneth Dawson-Howe > Practical Vision textbook Trinity College Crest
 Code Samples
 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 - Binary.

The Binary code (provided in Binary.cpp) runs the following demos:

Binary Thresholding:
Mathematical Morphology - Erosion & Dilation:
Mathematical Morphology - Opening & Closing:
Grey Scale Morphology & Connected Components:
Colour Morphology:

Copyright © 2023 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 @