LocalBlockBinarizer::~LocalBlockBinarizer() {
}
+Ref<BitArray> LocalBlockBinarizer::estimateBlackRow(int y, Ref<BitArray> row) {
+ //TODO: implement
+ return Ref<BitArray>();
+}
+
// Calculates the final BitMatrix once for all requests. This could be called once from the
// constructor instead, but there are some advantages to doing it lazily, such as making
// profiling easier, and not doing heavy lifting when callers don't expect it.
virtual ~LocalBlockBinarizer();
virtual Ref<BitMatrix> estimateBlackMatrix();
-
+ Ref<BitArray> estimateBlackRow(int y, Ref<BitArray> row);
+
private:
+
void calculateThresholdForBlock(const unsigned char* luminances, int subWidth, int subHeight,
int stride, const unsigned char* averages, const unsigned char* types, BitMatrix& matrix);
void sharpenRow(unsigned char* luminances, int width, int height);
#include <zxing/common/Array.h>
#include <zxing/ReaderException.h>
#include <math.h>
+#include <string.h>
namespace zxing {
namespace oned {
#include <zxing/common/Array.h>
#include <zxing/ReaderException.h>
#include <math.h>
+#include <limits.h>
namespace zxing {
namespace oned {
#include "OneDReader.h"
#include <zxing/ReaderException.h>
#include <math.h>
+#include <limits.h>
namespace zxing {
namespace oned {
int lresult = 1;
if (outfolder == string("-")) {
- //gresult = test_image_global(image, "");
+ gresult = test_image_global(image, "");
lresult = test_image_local(image, "");
} else {
replace(infilename.begin(), infilename.end(), '/', '_');
string prefix = string(outfolder) + string("/") + infilename;
- //gresult = test_image_global(image, prefix + ".g");
+ gresult = test_image_global(image, prefix + ".g");
lresult = test_image_local(image, prefix + ".l");
}