# Category Archives: OpenCV

## Install OpenCV 3 + Python 3.5 macOS tutorial

Install OpenCV 3 + Python 3.5 macOS tutorial This is a rapid tutorial to install OpenCV 3 on macOS. I have eliminated long description and focused only on installation commands more. 1. Install XCode In order to compile OpenCV on macOS, we need to install XCode first. The simplest way to get XCode is right… Read More »

## What is histogram equalization ?

To improve the contrast of an image, histogram equalization is being used. Best to learn here

## 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 »

## What is saturation arithmetic ?

What is saturation arithmetic ? Saturation arithmetic is a a type of arithmetic in which addition and multiplication operations are limited into a fixed range of minimum and maximum values. e.g. Range : -100 to 100 then, 60+30 = 90 60+45 = 100 -60-30 = -90 -60-45 = -100 15 * 10 = 100 See… 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