sourceBottomRightX = sourceBottomRightY = dimMinusThree;
}
- PerspectiveTransform transform = PerspectiveTransform.quadrilateralToQuadrilateral(
+ return PerspectiveTransform.quadrilateralToQuadrilateral(
3.5f,
3.5f,
dimMinusThree,
bottomRightY,
bottomLeft.getX(),
bottomLeft.getY());
-
- return transform;
}
private static BitMatrix sampleGrid(BitMatrix image,
int dimension) throws NotFoundException {
GridSampler sampler = GridSampler.getInstance();
- return sampler.sampleGrid(image, dimension, transform);
+ return sampler.sampleGrid(image, dimension, dimension, transform);
}
/**
int alignmentAreaTopY = Math.max(0, estAlignmentY - allowance);
int alignmentAreaBottomY = Math.min(image.getHeight() - 1, estAlignmentY + allowance);
+ if (alignmentAreaBottomY - alignmentAreaTopY < overallEstModuleSize * 3) {
+ throw NotFoundException.getNotFoundInstance();
+ }
AlignmentPatternFinder alignmentFinder =
new AlignmentPatternFinder(