glassechidna / zxing-cpp

ZXing C++ Library
Apache License 2.0
605 stars 436 forks source link

ImageReaderSource does not work with greyscale images. #8

Open milen-yordanov opened 9 years ago

milen-yordanov commented 9 years ago

The variable 'comps' is 1 for greyscale images. ImageReaderSource uses hardcoded value 4 instead of the variable 'comps' in methods

ImageReaderSource::getRow ImageReaderSource::getMatrix

Benjamin-Dobell commented 9 years ago

@milenyordanov If you've resolved this locally then please submit a pull request. Thanks.