1. A method for object detection, the method comprising: in a processor, implementing the acts of: instantiating a lookup table for a weak classifier; setting an entry of the lookup table based on at least a Bayesian error associated with the entry, the entries of the lookup table corresponding to histogram intervals of a feature histogram; setting a width of the histogram intervals of the feature histogram and a value of a corresponding entry in the lookup table to minimize the associated Bayesian error; and modifying a computer-readable medium based on at least the weak classifier.