Uses of Class
com.google.zxing.common.BitMatrix
Packages that use BitMatrix
Package
Description
-
Uses of BitMatrix in com.google.zxing
Fields in com.google.zxing declared as BitMatrixMethods in com.google.zxing that return BitMatrixModifier and TypeMethodDescriptionMultiFormatWriter.encode
(String contents, BarcodeFormat format, int width, int height) MultiFormatWriter.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) Writer.encode
(String contents, BarcodeFormat format, int width, int height) Encode a barcode using the default settings.Writer.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) abstract BitMatrix
Binarizer.getBlackMatrix()
Converts a 2D array of luminance data to 1 bit data.BinaryBitmap.getBlackMatrix()
Converts a 2D array of luminance data to 1 bit. -
Uses of BitMatrix in com.google.zxing.aztec
Methods in com.google.zxing.aztec that return BitMatrixModifier and TypeMethodDescriptionAztecWriter.encode
(String contents, BarcodeFormat format, int width, int height) private static BitMatrix
AztecWriter.encode
(String contents, BarcodeFormat format, int width, int height, Charset charset, int eccPercent, int layers) AztecWriter.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) private static BitMatrix
AztecWriter.renderResult
(AztecCode code, int width, int height) Constructors in com.google.zxing.aztec with parameters of type BitMatrixModifierConstructorDescriptionAztecDetectorResult
(BitMatrix bits, ResultPoint[] points, boolean compact, int nbDatablocks, int nbLayers) AztecDetectorResult
(BitMatrix bits, ResultPoint[] points, boolean compact, int nbDatablocks, int nbLayers, int errorsCorrected) -
Uses of BitMatrix in com.google.zxing.aztec.decoder
Methods in com.google.zxing.aztec.decoder with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate boolean[]
Decoder.extractBits
(BitMatrix matrix) Gets the array of bits from an Aztec Code matrix -
Uses of BitMatrix in com.google.zxing.aztec.detector
Fields in com.google.zxing.aztec.detector declared as BitMatrixMethods in com.google.zxing.aztec.detector that return BitMatrixModifier and TypeMethodDescriptionprivate BitMatrix
Detector.sampleGrid
(BitMatrix image, ResultPoint topLeft, ResultPoint topRight, ResultPoint bottomRight, ResultPoint bottomLeft) Creates a BitMatrix by sampling the provided image.Methods in com.google.zxing.aztec.detector with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate BitMatrix
Detector.sampleGrid
(BitMatrix image, ResultPoint topLeft, ResultPoint topRight, ResultPoint bottomRight, ResultPoint bottomLeft) Creates a BitMatrix by sampling the provided image.Constructors in com.google.zxing.aztec.detector with parameters of type BitMatrix -
Uses of BitMatrix in com.google.zxing.aztec.encoder
Fields in com.google.zxing.aztec.encoder declared as BitMatrixMethods in com.google.zxing.aztec.encoder that return BitMatrixMethods in com.google.zxing.aztec.encoder with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static void
Encoder.drawBullsEye
(BitMatrix matrix, int center, int size) private static void
Encoder.drawModeMessage
(BitMatrix matrix, boolean compact, int matrixSize, BitArray modeMessage) void
-
Uses of BitMatrix in com.google.zxing.client.j2se
Methods in com.google.zxing.client.j2se with parameters of type BitMatrixModifier and TypeMethodDescriptionstatic BufferedImage
MatrixToImageWriter.toBufferedImage
(BitMatrix matrix) Renders aBitMatrix
as an image, where "false" bits are rendered as white, and "true" bits are rendered as black.static BufferedImage
MatrixToImageWriter.toBufferedImage
(BitMatrix matrix, MatrixToImageConfig config) AsMatrixToImageWriter.toBufferedImage(BitMatrix)
, but allows customization of the output.static void
MatrixToImageWriter.writeToFile
(BitMatrix matrix, String format, File file) Deprecated.static void
MatrixToImageWriter.writeToFile
(BitMatrix matrix, String format, File file, MatrixToImageConfig config) static void
MatrixToImageWriter.writeToPath
(BitMatrix matrix, String format, Path file) Writes aBitMatrix
to a file with default configuration.static void
MatrixToImageWriter.writeToPath
(BitMatrix matrix, String format, Path file, MatrixToImageConfig config) AsMatrixToImageWriter.writeToPath(BitMatrix, String, Path)
, but allows customization of the output.static void
MatrixToImageWriter.writeToStream
(BitMatrix matrix, String format, OutputStream stream) Writes aBitMatrix
to a stream with default configuration.static void
MatrixToImageWriter.writeToStream
(BitMatrix matrix, String format, OutputStream stream, MatrixToImageConfig config) AsMatrixToImageWriter.writeToStream(BitMatrix, String, OutputStream)
, but allows customization of the output. -
Uses of BitMatrix in com.google.zxing.common
Fields in com.google.zxing.common declared as BitMatrixModifier and TypeFieldDescriptionprivate final BitMatrix
DetectorResult.bits
private BitMatrix
HybridBinarizer.matrix
Methods in com.google.zxing.common that return BitMatrixModifier and TypeMethodDescriptionBitMatrix.clone()
final BitMatrix
DetectorResult.getBits()
GlobalHistogramBinarizer.getBlackMatrix()
HybridBinarizer.getBlackMatrix()
Calculates the final BitMatrix once for all requests.static BitMatrix
BitMatrix.parse
(boolean[][] image) Interprets a 2D array of booleans as aBitMatrix
, where "true" means an "on" bit.static BitMatrix
DefaultGridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, float p1ToX, float p1ToY, float p2ToX, float p2ToY, float p3ToX, float p3ToY, float p4ToX, float p4ToY, float p1FromX, float p1FromY, float p2FromX, float p2FromY, float p3FromX, float p3FromY, float p4FromX, float p4FromY) DefaultGridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, PerspectiveTransform transform) abstract BitMatrix
GridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, float p1ToX, float p1ToY, float p2ToX, float p2ToY, float p3ToX, float p3ToY, float p4ToX, float p4ToY, float p1FromX, float p1FromY, float p2FromX, float p2FromY, float p3FromX, float p3FromY, float p4FromX, float p4FromY) Samples an image for a rectangular matrix of bits of the given dimension.abstract BitMatrix
GridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, PerspectiveTransform transform) Methods in com.google.zxing.common with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static void
HybridBinarizer.calculateThresholdForBlock
(byte[] luminances, int subWidth, int subHeight, int width, int height, int[][] blackPoints, BitMatrix matrix) For each block in the image, calculate the average black point using a 5x5 grid of the blocks around it.protected static void
GridSampler.checkAndNudgePoints
(BitMatrix image, float[] points) Checks a set of points that have been transformed to sample points on an image against the image's dimensions to see if the point are even within the image.DefaultGridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, float p1ToX, float p1ToY, float p2ToX, float p2ToY, float p3ToX, float p3ToY, float p4ToX, float p4ToY, float p1FromX, float p1FromY, float p2FromX, float p2FromY, float p3FromX, float p3FromY, float p4FromX, float p4FromY) DefaultGridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, PerspectiveTransform transform) abstract BitMatrix
GridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, float p1ToX, float p1ToY, float p2ToX, float p2ToY, float p3ToX, float p3ToY, float p4ToX, float p4ToY, float p1FromX, float p1FromY, float p2FromX, float p2FromY, float p3FromX, float p3FromY, float p4FromX, float p4FromY) Samples an image for a rectangular matrix of bits of the given dimension.abstract BitMatrix
GridSampler.sampleGrid
(BitMatrix image, int dimensionX, int dimensionY, PerspectiveTransform transform) private static void
HybridBinarizer.thresholdBlock
(byte[] luminances, int xoffset, int yoffset, int threshold, int stride, BitMatrix matrix) Applies a single threshold to a block of pixels.void
Exclusive-or (XOR): Flip the bit in thisBitMatrix
if the corresponding mask bit is set.Constructors in com.google.zxing.common with parameters of type BitMatrix -
Uses of BitMatrix in com.google.zxing.common.detector
Fields in com.google.zxing.common.detector declared as BitMatrixModifier and TypeFieldDescriptionprivate final BitMatrix
MonochromeRectangleDetector.image
Deprecated.private final BitMatrix
WhiteRectangleDetector.image
Constructors in com.google.zxing.common.detector with parameters of type BitMatrixModifierConstructorDescriptionDeprecated.WhiteRectangleDetector
(BitMatrix image) WhiteRectangleDetector
(BitMatrix image, int initSize, int x, int y) -
Uses of BitMatrix in com.google.zxing.datamatrix
Methods in com.google.zxing.datamatrix that return BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
DataMatrixWriter.convertByteMatrixToBitMatrix
(ByteMatrix matrix, int reqWidth, int reqHeight) Convert the ByteMatrix to BitMatrix.DataMatrixWriter.encode
(String contents, BarcodeFormat format, int width, int height) DataMatrixWriter.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) private static BitMatrix
DataMatrixWriter.encodeLowLevel
(DefaultPlacement placement, SymbolInfo symbolInfo, int width, int height) Encode the given symbol info to a bit matrix.private static BitMatrix
DataMatrixReader.extractPureBits
(BitMatrix image) This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it.Methods in com.google.zxing.datamatrix with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
DataMatrixReader.extractPureBits
(BitMatrix image) This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it.private static int
DataMatrixReader.moduleSize
(int[] leftTopBlack, BitMatrix image) -
Uses of BitMatrix in com.google.zxing.datamatrix.decoder
Fields in com.google.zxing.datamatrix.decoder declared as BitMatrixModifier and TypeFieldDescriptionprivate final BitMatrix
BitMatrixParser.mappingBitMatrix
private final BitMatrix
BitMatrixParser.readMappingMatrix
Methods in com.google.zxing.datamatrix.decoder that return BitMatrixModifier and TypeMethodDescriptionprivate BitMatrix
BitMatrixParser.extractDataRegion
(BitMatrix bitMatrix) Extracts the data region from aBitMatrix
that contains alignment patterns.Methods in com.google.zxing.datamatrix.decoder with parameters of type BitMatrixModifier and TypeMethodDescriptionDecodes a Data Matrix Code represented as aBitMatrix
.private BitMatrix
BitMatrixParser.extractDataRegion
(BitMatrix bitMatrix) Extracts the data region from aBitMatrix
that contains alignment patterns.private static Version
BitMatrixParser.readVersion
(BitMatrix bitMatrix) Creates the version object based on the dimension of the original bit matrix from the datamatrix code.Constructors in com.google.zxing.datamatrix.decoder with parameters of type BitMatrix -
Uses of BitMatrix in com.google.zxing.datamatrix.detector
Fields in com.google.zxing.datamatrix.detector declared as BitMatrixMethods in com.google.zxing.datamatrix.detector that return BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
Detector.sampleGrid
(BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint bottomRight, ResultPoint topRight, int dimensionX, int dimensionY) Methods in com.google.zxing.datamatrix.detector with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
Detector.sampleGrid
(BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint bottomRight, ResultPoint topRight, int dimensionX, int dimensionY) Constructors in com.google.zxing.datamatrix.detector with parameters of type BitMatrix -
Uses of BitMatrix in com.google.zxing.maxicode
Methods in com.google.zxing.maxicode that return BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
MaxiCodeReader.extractPureBits
(BitMatrix image) This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it.Methods in com.google.zxing.maxicode with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
MaxiCodeReader.extractPureBits
(BitMatrix image) This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it. -
Uses of BitMatrix in com.google.zxing.maxicode.decoder
Fields in com.google.zxing.maxicode.decoder declared as BitMatrixMethods in com.google.zxing.maxicode.decoder with parameters of type BitMatrixConstructors in com.google.zxing.maxicode.decoder with parameters of type BitMatrix -
Uses of BitMatrix in com.google.zxing.multi.qrcode.detector
Constructors in com.google.zxing.multi.qrcode.detector with parameters of type BitMatrixModifierConstructorDescriptionMultiDetector
(BitMatrix image) MultiFinderPatternFinder
(BitMatrix image, ResultPointCallback resultPointCallback) -
Uses of BitMatrix in com.google.zxing.oned
Methods in com.google.zxing.oned that return BitMatrixModifier and TypeMethodDescriptionfinal BitMatrix
OneDimensionalCodeWriter.encode
(String contents, BarcodeFormat format, int width, int height) OneDimensionalCodeWriter.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) Encode the contents following specified format.UPCAWriter.encode
(String contents, BarcodeFormat format, int width, int height) UPCAWriter.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) private static BitMatrix
OneDimensionalCodeWriter.renderResult
(boolean[] code, int width, int height, int sidesMargin) -
Uses of BitMatrix in com.google.zxing.pdf417
Methods in com.google.zxing.pdf417 that return BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
PDF417Writer.bitMatrixFromBitArray
(byte[][] input, int margin) This takes an array holding the values of the PDF 417private static BitMatrix
PDF417Writer.bitMatrixFromEncoder
(PDF417 encoder, String contents, int errorCorrectionLevel, int width, int height, int margin, boolean autoECI) Takes encoder, accounts for width/height, and retrieves bit matrixPDF417Writer.encode
(String contents, BarcodeFormat format, int width, int height) PDF417Writer.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) -
Uses of BitMatrix in com.google.zxing.pdf417.decoder
Fields in com.google.zxing.pdf417.decoder declared as BitMatrixMethods in com.google.zxing.pdf417.decoder with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static int
PDF417ScanningDecoder.adjustCodewordStartColumn
(BitMatrix image, int minColumn, int maxColumn, boolean leftToRight, int codewordStartColumn, int imageRow) static DecoderResult
PDF417ScanningDecoder.decode
(BitMatrix image, ResultPoint imageTopLeft, ResultPoint imageBottomLeft, ResultPoint imageTopRight, ResultPoint imageBottomRight, int minCodewordWidth, int maxCodewordWidth) private static Codeword
PDF417ScanningDecoder.detectCodeword
(BitMatrix image, int minColumn, int maxColumn, boolean leftToRight, int startColumn, int imageRow, int minCodewordWidth, int maxCodewordWidth) private static int[]
PDF417ScanningDecoder.getModuleBitCount
(BitMatrix image, int minColumn, int maxColumn, boolean leftToRight, int startColumn, int imageRow) private static DetectionResultRowIndicatorColumn
PDF417ScanningDecoder.getRowIndicatorColumn
(BitMatrix image, BoundingBox boundingBox, ResultPoint startPoint, boolean leftToRight, int minCodewordWidth, int maxCodewordWidth) Constructors in com.google.zxing.pdf417.decoder with parameters of type BitMatrixModifierConstructorDescription(package private)
BoundingBox
(BitMatrix image, ResultPoint topLeft, ResultPoint bottomLeft, ResultPoint topRight, ResultPoint bottomRight) -
Uses of BitMatrix in com.google.zxing.pdf417.detector
Fields in com.google.zxing.pdf417.detector declared as BitMatrixMethods in com.google.zxing.pdf417.detector that return BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
Detector.applyRotation
(BitMatrix matrix, int rotation) Applies a rotation to the supplied BitMatrix.PDF417DetectorResult.getBits()
Methods in com.google.zxing.pdf417.detector with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
Detector.applyRotation
(BitMatrix matrix, int rotation) Applies a rotation to the supplied BitMatrix.private static List
<ResultPoint[]> Detects PDF417 codes in an image.private static int[]
Detector.findGuardPattern
(BitMatrix matrix, int column, int row, int width, int[] pattern, int[] counters) private static ResultPoint[]
Detector.findRowsWithPattern
(BitMatrix matrix, int height, int width, int startRow, int startColumn, int minHeight, int[] pattern) private static ResultPoint[]
Detector.findVertices
(BitMatrix matrix, int startRow, int startColumn) Locate the vertices and the codewords area of a black blob using the Start and Stop patterns as locators.Constructors in com.google.zxing.pdf417.detector with parameters of type BitMatrixModifierConstructorDescriptionPDF417DetectorResult
(BitMatrix bits, List<ResultPoint[]> points) PDF417DetectorResult
(BitMatrix bits, List<ResultPoint[]> points, int rotation) -
Uses of BitMatrix in com.google.zxing.qrcode
Methods in com.google.zxing.qrcode that return BitMatrixModifier and TypeMethodDescriptionQRCodeWriter.encode
(String contents, BarcodeFormat format, int width, int height) QRCodeWriter.encode
(String contents, BarcodeFormat format, int width, int height, Map<EncodeHintType, ?> hints) private static BitMatrix
QRCodeReader.extractPureBits
(BitMatrix image) This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it.private static BitMatrix
QRCodeWriter.renderResult
(QRCode code, int width, int height, int quietZone) Methods in com.google.zxing.qrcode with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
QRCodeReader.extractPureBits
(BitMatrix image) This method detects a code in a "pure" image -- that is, pure monochrome image which contains only an unrotated, unskewed, image of a code, with some white border around it.private static float
QRCodeReader.moduleSize
(int[] leftTopBlack, BitMatrix image) -
Uses of BitMatrix in com.google.zxing.qrcode.decoder
Fields in com.google.zxing.qrcode.decoder declared as BitMatrixMethods in com.google.zxing.qrcode.decoder that return BitMatrixModifier and TypeMethodDescription(package private) BitMatrix
Version.buildFunctionPattern()
See ISO 18004:2006 Annex EMethods in com.google.zxing.qrcode.decoder with parameters of type BitMatrixModifier and TypeMethodDescriptionDecoder.decode
(BitMatrix bits, Map<DecodeHintType, ?> hints) Decodes a QR Code represented as aBitMatrix
.(package private) final void
DataMask.unmaskBitMatrix
(BitMatrix bits, int dimension) Implementations of this method reverse the data masking process applied to a QR Code and make its bits ready to read.Constructors in com.google.zxing.qrcode.decoder with parameters of type BitMatrix -
Uses of BitMatrix in com.google.zxing.qrcode.detector
Fields in com.google.zxing.qrcode.detector declared as BitMatrixModifier and TypeFieldDescriptionprivate final BitMatrix
AlignmentPatternFinder.image
private final BitMatrix
Detector.image
private final BitMatrix
FinderPatternFinder.image
Methods in com.google.zxing.qrcode.detector that return BitMatrixModifier and TypeMethodDescriptionprotected final BitMatrix
Detector.getImage()
protected final BitMatrix
FinderPatternFinder.getImage()
private static BitMatrix
Detector.sampleGrid
(BitMatrix image, PerspectiveTransform transform, int dimension) Methods in com.google.zxing.qrcode.detector with parameters of type BitMatrixModifier and TypeMethodDescriptionprivate static BitMatrix
Detector.sampleGrid
(BitMatrix image, PerspectiveTransform transform, int dimension) Constructors in com.google.zxing.qrcode.detector with parameters of type BitMatrixModifierConstructorDescription(package private)
AlignmentPatternFinder
(BitMatrix image, int startX, int startY, int width, int height, float moduleSize, ResultPointCallback resultPointCallback) Creates a finder that will look in a portion of the whole image.FinderPatternFinder
(BitMatrix image) Creates a finder that will search the image for three finder patterns.FinderPatternFinder
(BitMatrix image, ResultPointCallback resultPointCallback)
MatrixToImageWriter.writeToPath(BitMatrix, String, Path)