ZXing.PDF417.Internal.DetectionResult.adjustRowNumberIfValid(int, int, Codeword)

Here are the examples of the csharp api class ZXing.PDF417.Internal.DetectionResult.adjustRowNumberIfValid(int, int, Codeword) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: ZXing.Net
Source File: DetectionResult.cs
View license
private int adjustRowNumbersFromLRI()
      {
         if (DetectionResultColumns[0] == null)
         {
            return 0;
         }
         int unadjustedCount = 0;
         Codeword[] codewords = DetectionResultColumns[0].Codewords;
         for (int codewordsRow = 0; codewordsRow < codewords.Length; codewordsRow++)
         {
            if (codewords[codewordsRow] == null)
            {
               continue;
            }
            int rowIndicatorRowNumber = codewords[codewordsRow].RowNumber;
            int invalidRowCounts = 0;
            for (int barcodeColumn = 1; barcodeColumn < ColumnCount + 1 && invalidRowCounts < ADJUST_ROW_NUMBER_SKIP; barcodeColumn++)
            {
               Codeword codeword = DetectionResultColumns[barcodeColumn].Codewords[codewordsRow];
               if (codeword != null)
               {
                  invalidRowCounts = adjustRowNumberIfValid(rowIndicatorRowNumber, invalidRowCounts, codeword);
                  if (!codeword.HasValidRowNumber)
                  {
                     unadjustedCount++;
                  }
               }
            }
         }
         return unadjustedCount;
      }

2. Example

Project: ZXing.Net
Source File: DetectionResult.cs
View license
private int adjustRowNumbersFromRRI()
      {
         if (DetectionResultColumns[ColumnCount + 1] == null)
         {
            return 0;
         }
         int unadjustedCount = 0;
         Codeword[] codewords = DetectionResultColumns[ColumnCount + 1].Codewords;
         for (int codewordsRow = 0; codewordsRow < codewords.Length; codewordsRow++)
         {
            if (codewords[codewordsRow] == null)
            {
               continue;
            }
            int rowIndicatorRowNumber = codewords[codewordsRow].RowNumber;
            int invalidRowCounts = 0;
            for (int barcodeColumn = ColumnCount + 1; barcodeColumn > 0 && invalidRowCounts < ADJUST_ROW_NUMBER_SKIP; barcodeColumn--)
            {
               Codeword codeword = DetectionResultColumns[barcodeColumn].Codewords[codewordsRow];
               if (codeword != null)
               {
                  invalidRowCounts = adjustRowNumberIfValid(rowIndicatorRowNumber, invalidRowCounts, codeword);
                  if (!codeword.HasValidRowNumber)
                  {
                     unadjustedCount++;
                  }
               }
            }
         }
         return unadjustedCount;
      }

3. Example

Project: zxing-core
Source File: DetectionResult.cs
View license
private int adjustRowNumbersFromRRI()
      {
         if (DetectionResultColumns[ColumnCount + 1] == null)
         {
            return 0;
         }
         int unadjustedCount = 0;
         Codeword[] codewords = DetectionResultColumns[ColumnCount + 1].Codewords;
         for (int codewordsRow = 0; codewordsRow < codewords.Length; codewordsRow++)
         {
            if (codewords[codewordsRow] == null)
            {
               continue;
            }
            int rowIndicatorRowNumber = codewords[codewordsRow].RowNumber;
            int invalidRowCounts = 0;
            for (int barcodeColumn = ColumnCount + 1; barcodeColumn > 0 && invalidRowCounts < ADJUST_ROW_NUMBER_SKIP; barcodeColumn--)
            {
               Codeword codeword = DetectionResultColumns[barcodeColumn].Codewords[codewordsRow];
               if (codeword != null)
               {
                  invalidRowCounts = adjustRowNumberIfValid(rowIndicatorRowNumber, invalidRowCounts, codeword);
                  if (!codeword.HasValidRowNumber)
                  {
                     unadjustedCount++;
                  }
               }
            }
         }
         return unadjustedCount;
      }

4. Example

Project: zxing-core
Source File: DetectionResult.cs
View license
private int adjustRowNumbersFromLRI()
      {
         if (DetectionResultColumns[0] == null)
         {
            return 0;
         }
         int unadjustedCount = 0;
         Codeword[] codewords = DetectionResultColumns[0].Codewords;
         for (int codewordsRow = 0; codewordsRow < codewords.Length; codewordsRow++)
         {
            if (codewords[codewordsRow] == null)
            {
               continue;
            }
            int rowIndicatorRowNumber = codewords[codewordsRow].RowNumber;
            int invalidRowCounts = 0;
            for (int barcodeColumn = 1; barcodeColumn < ColumnCount + 1 && invalidRowCounts < ADJUST_ROW_NUMBER_SKIP; barcodeColumn++)
            {
               Codeword codeword = DetectionResultColumns[barcodeColumn].Codewords[codewordsRow];
               if (codeword != null)
               {
                  invalidRowCounts = adjustRowNumberIfValid(rowIndicatorRowNumber, invalidRowCounts, codeword);
                  if (!codeword.HasValidRowNumber)
                  {
                     unadjustedCount++;
                  }
               }
            }
         }
         return unadjustedCount;
      }