Matrix code probability

Matrix code probability

Calculates the probability that a matrix code is present in an image patch. For this, gray-level histogram is used.

Inputs

image
Input image.
corner
Pixel coordinate of the upper left corner of the region of interest. A 1-by-2 matrix.
size
The size of the rectangle framing the region-of-interest. If size is undefined (either width or height is NAN), the histogram is computed from the whole image.
filterWindow
Window size for smoothing the histogram vector.

Outputs

confidence
The probability (0-1) that the region-of-interest in image represents a matrix code (e.g. QR code or data matrix)