mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
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:
parent
9adb83bbd3
commit
7b2cafe970
|
@ -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]++;
|
||||
|
|
Loading…
Reference in a new issue