+#ifndef __HYBRIDBINARIZER_H__
+#define __HYBRIDBINARIZER_H__
/*
* HybridBinarizer.h
* zxing
* limitations under the License.
*/
-#ifndef HYBRIDBINARIZER_H_
-#define HYBRIDBINARIZER_H_
-
#include <vector>
#include <zxing/Binarizer.h>
#include <zxing/common/GlobalHistogramBinarizer.h>
void binarizeEntireImage();
// We'll be using one-D arrays because C++ can't dynamically allocate 2D arrays
int* calculateBlackPoints(unsigned char* luminances, int subWidth, int subHeight,
- int stride);
+ int width, int height);
void calculateThresholdForBlock(unsigned char* luminances, int subWidth, int subHeight,
- int stride, int blackPoints[], Ref<BitMatrix> matrix);
+ int width, int height, int blackPoints[], Ref<BitMatrix> matrix);
void threshold8x8Block(unsigned char* luminances, int xoffset, int yoffset, int threshold,
int stride, Ref<BitMatrix> matrix);
};