Evaluate the whole image with getSingleScale.

Currently, CascadeClassifier does not find positives that are the same size as the image. In CascadeClassifierInvoker::operator(), ScaleData::getWorkingSize() is called with an argument of the detector window size. When the detector window size is the same as the scaled image size, getWorkingSize() returns Size(0,0), as it should. However, this results in y0 and y1 both being zero, and the for loop being skipped. Simply changing the <s to <=s rectified the issue for me, admittedly in an older OpenCV version. I can't think of any problems from this change that wouldn't be immediately apparent.

FOR THE OCL CHANGE, I WAS GUESSING. It would be good if someone more knowledgeable could ensure that it's the right thing to change.