Package pyvision :: Package other :: Module color :: Class Histogram
[hide private]
[frames] | no frames]

Class Histogram

source code

Basically a wrapper around an OpenCV histogram.

Instance Methods [hide private]
 
__init__(self, hist, hist_type, nbins1, nbins2, nbins3)
nbins* are the number of bins and should be set to None if they do not exist
source code
 
asMatrix(self) source code
 
rescaleMax(self, value=255)
Rescale the histogram such that the maximum equals the value.
source code
 
rescaleSum(self, value=1.0)
Rescale the histogram such that the maximum equals the value.
source code
 
backProject(self, im, bg_hist=None) source code
Method Details [hide private]

__init__(self, hist, hist_type, nbins1, nbins2, nbins3)
(Constructor)

source code 

nbins* are the number of bins and should be set to None if they do not exist

Parameters:
  • hist - the OpenCV histogram @param hist_type