/*
- * Copyright 2007 Google Inc.
+ * Copyright 2007 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
package com.google.zxing.qrcode.detector;
/**
- * @author srowen@google.com (Sean Owen)
+ * <p>Encapsulates information about finder patterns in an image, including the location of
+ * the three finder patterns, and their estimated module size.</p>
+ *
+ * @author Sean Owen
*/
-final class FinderPatternInfo {
+public final class FinderPatternInfo {
- private final float rawEstimatedModuleSize;
private final FinderPattern bottomLeft;
private final FinderPattern topLeft;
private final FinderPattern topRight;
- FinderPatternInfo(float rawEstimatedModuleSize,
- FinderPattern[] patternCenters) {
- this.rawEstimatedModuleSize = rawEstimatedModuleSize;
+ public FinderPatternInfo(FinderPattern[] patternCenters) {
this.bottomLeft = patternCenters[0];
this.topLeft = patternCenters[1];
this.topRight = patternCenters[2];
}
- float getRawEstimatedModuleSize() {
- return rawEstimatedModuleSize;
- }
-
- FinderPattern getBottomLeft() {
+ public FinderPattern getBottomLeft() {
return bottomLeft;
}
- FinderPattern getTopLeft() {
+ public FinderPattern getTopLeft() {
return topLeft;
}
- FinderPattern getTopRight() {
+ public FinderPattern getTopRight() {
return topRight;
}