Histogram Equalization
I have written my own function to equalize the histogram of a 1-channel image in OpenCV, as cvEqualizeHist currently crashes on my computer. The following is an example of the function in use.
Original Images
Foreground Image (Image of screen from left camera)
Background Image (Screen Output)
Equalized Greyscale Images
Foreground
Background
Histograms
This shows the histograms of both equalized greyscale images, with the foreground on the left, and the background on the right. The thick black line down the centre separates the two histograms.
Subtraction
When using the 3x3 subtraction algorithm, this is the resulting image and its histogram
TODO
Equalize the subtraction image, and then set a threshold to see if there are any obvious sections of the histogram that represent the hand.
ViSLAB