Missed one place that needs to cache the luminance data.

git-svn-id: https://zxing.googlecode.com/svn/trunk@419 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
dswitkin 2008-06-11 23:58:04 +00:00
parent 9adb83bbd3
commit 7b2cafe970

View file

@ -98,6 +98,7 @@ public abstract class BaseMonochromeBitmapSource implements MonochromeBitmapSour
if (argument < 0 || argument >= height) {
throw new IllegalArgumentException("Row is not within the image: " + argument);
}
cacheRowForLuminance(argument);
for (int x = 0; x < width; x++) {
int luminance = getLuminance(x, argument);
histogram[luminance >> LUMINANCE_SHIFT]++;