Category Archives: OpenCV

What is generic programming ?

What is generic programming In simple terms, generic programming is a style of computer programming in which the data types are to be specified later in the programming when needed. In C++ , generic programming is achieved using templates.  

What are templates in C++ programming ?

What are templates in C++ programming ? Templates are used in C++ to achieve generic programming and providing generic data types. It can be understood by following class template :

Example of generic function :

 

What is modular arithmetic ?

What is modular arithmetic ? Different from saturation arithmetic , in modular arithmetic on reaching a certain value the number is wrap around, by using modulo. Modern microprocessor system uses this arithmetic. The best example of modular arithmetic is the clock. It is the mod of 12 e.g. if value goes beyond, as like person x tells… Read More »

Camera not working mac yosemite

Camera not working mac yosemite Whenever your camera doesn’t respond in Yosemite then try “restart your mac” or for the following error when working in OpenCV ! QTKit didn’t find any attached Video Input Devices! Warning, camera failed to properly initialize! Cleaned up camera. Program ended with exit code: 255

Sample code to convert image to HSV realtime xcode opencv

Sample code to convert image to HSV realtime xcode opencv