Skip to content
This repository has been archived by the owner on Aug 19, 2020. It is now read-only.

Legacy C language Image Processing and Computer Vision OpenCV Examples used for Teaching

License

Notifications You must be signed in to change notification settings

tobybreckon/c-examples-ipcv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Image Processing and Computer Vision OpenCV Teaching Examples

OpenCV C Interface Image Processing and Computer Vision legacy examples used for teaching, instruction and reference over the years (2006-2010).

Uses C interface to OpenCV, with additional C++ code - as these examples pre-date the C++ OpenCV interface - available post OpenCV 2.x

All tested with OpenCV 2.x and GCC (Linux) and known to work with MS Visual Studio 200x on Win32 / Win64. N.B. due to changes in the OpenCV API some of these do not generically work with OpenCV > 2.x by default. Cmake by default now only builds those that work eith OpenCV 2.x and 3.x.

(see https://github.com/tobybreckon/cpp-examples-ipcv for OpenCV 3.x C++ examples).


Background:

If I taught you between 2006 and 2010+ at Cranfield University or ESTIA - these are the examples from class.

Additionally used to generate the video examples within the ebook version of:

Dictionary of Computer Vision and Image Processing (R.B. Fisher, T.P. Breckon, K. Dawson-Howe, A. Fitzgibbon, C. Robertson, E. Trucco, C.K.I. Williams), Wiley, 2014. [Google Books] [doi]


How to Build and run:

git clone https://github.com/tobybreckon/c-examples-ipcv.git
cd c-examples-ipcv
cmake .
make
./<insert executable name of one of the examples>

Demo source code is provided "as is" to aid your learning and understanding -- see my textbook http://www.fundipbook.com for the theory (and matlab code also).

Most run with a webcam connected or from a command line supplied video file of a format OpenCV supports on your system (otherwise edit the script to provide your own image source).

N.B. you may need to change the line near the top that specifies the camera device to use on some examples below - change "0" if you have one webcam, I have it set to "1" to skip my built-in laptop webcam and use the connected USB camera.


Reference:

All techniques are fully explained in corresponding section of:

Fundamentals of Digital Image Processing: A Practical Approach with Examples in Matlab, Chris J. Solomon and Toby P. Breckon, Wiley-Blackwell, 2010 ISBN: 0470844736, DOI:10.1002/9780470689776, http://www.fundipbook.com

bibtex:
@Book{solomonbreckon10fundamentals,
  author 	= 	 {Solomon, C.J. and Breckon, T.P.},
  title 	= 	 {Fundamentals of Digital Image Processing:
                                A Practical Approach with Examples in Matlab},
  publisher 	= 	 {Wiley-Blackwell},
  year 		= 	 {2010},
  isbn 		= {0470844736},
  doi 		= {10.1002/9780470689776},
  url 		= {http://www.fundipbook.com}
}

If you find any bugs report them to me (or better still submit a pull request, please) - toby.breckon@durham.ac.uk

"may the source be with you" - anon.

About

Legacy C language Image Processing and Computer Vision OpenCV Examples used for Teaching

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published