Wiki Page Content

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)

fg_1.png

Background Image (Screen Output)

bg_1.png

Equalized Greyscale Images

Foreground

fg_gs_eq_1.png

Background

bg_gs_eq_1.png

Histograms

comp_hist_1.png

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

sub_1.png

sub_hist_1.png

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.

3DHands/2009-06-01 (last edited 2009-06-01 08:47:34 by alex)