Category Archives: OpenCV

What is depth in image processing ?

What is depth in image processing ? Depth or color depth or bit depth is either the number of bits used to indicate the color of a single pixel or number of bits used to indicate each color component in a single pixel. When referring to the first concept then we use the term bpp… Read More »

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 »

int argc, char** argv meaning in C++

int argc, char** argv meaning in C++ argc and argv are how command line arguments are passed to main() in C and C++.  argc will be the number of strings pointed to by argv. This will (in practice) be 1 plus the number of arguments, as virtually all implementations will prepend the name of the… Read More »

Camera not working mac yosemite

Camera not working mac yosemite If the camera doesn’t respond in Yosemite, try  to restart your mac. In case, you are working with OpenCV, following errors might occur: QTKit didn’t find any attached Video Input Devices! Warning, camera failed to properly initialize! Cleaned up camera. Program ended with exit code: 255 Solution for these errors is the… Read More »

Sample code to convert image to HSV realtime xcode opencv

Sample code to convert image to HSV realtime xcode opencv