/// Encapsulates logic that can detect a PDF417 Code in an image, even if the
/// PDF417 Code is rotated or skewed, or partially obscured.
///
/// SITA Lab (kevin.osullivan@sita.aero)
/// dswitkin@google.com (Daniel Switkin)
/// Guenther Grau (Java Core) - changed this class from an instance to static methods
/// Stephen Furlani (C# Port)
///
public sealed class Detector
{
private static readonly int[] INDEXES_START_PATTERN = {0, 4, 1, 5};
private static readonly int[] INDEXES_STOP_PATTERN = {6, 2, 7, 3};
private static readonly int INTEGER_MATH_SHIFT = 8;
private static readonly int PATTERN_MATCH_RESULT_SCALE_FACTOR = 1 << INTEGER_MATH_SHIFT;
private static readonly int MAX_AVG_VARIANCE = (int)(PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.42f);
private static readonly int MAX_INDIVIDUAL_VARIANCE = (int)(PATTERN_MATCH_RESULT_SCALE_FACTOR * 0.8f);
///