ZXing.PDF417.Internal.DetectionResult.adjustRowNumbersByRow()

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

2 Examples 7

1. Example

Project: ZXing.Net
Source File: DetectionResult.cs
private int adjustRowNumbers()
      {
         // TODO ensure that no detected codewords with unknown row number are left
         // we should be able to estimate the row height and use it as a hint for the row number
         // we should also fill the rows top to bottom and bottom to top
         int unadjustedCount = adjustRowNumbersByRow();
         if (unadjustedCount == 0)
         {
            return 0;
         }
         for (int barcodeColumn = 1; barcodeColumn < ColumnCount + 1; barcodeColumn++)
         {
            Codeword[] codewords = DetectionResultColumns[barcodeColumn].Codewords;
            for (int codewordsRow = 0; codewordsRow < codewords.Length; codewordsRow++)
            {
               if (codewords[codewordsRow] == null)
               {
                  continue;
               }
               if (!codewords[codewordsRow].HasValidRowNumber)
               {
                  adjustRowNumbers(barcodeColumn, codewordsRow, codewords);
               }
            }
         }
         return unadjustedCount;
      }

2. Example

Project: zxing-core
Source File: DetectionResult.cs
private int adjustRowNumbers()
      {
         // TODO ensure that no detected codewords with unknown row number are left
         // we should be able to estimate the row height and use it as a hint for the row number
         // we should also fill the rows top to bottom and bottom to top
         int unadjustedCount = adjustRowNumbersByRow();
         if (unadjustedCount == 0)
         {
            return 0;
         }
         for (int barcodeColumn = 1; barcodeColumn < ColumnCount + 1; barcodeColumn++)
         {
            Codeword[] codewords = DetectionResultColumns[barcodeColumn].Codewords;
            for (int codewordsRow = 0; codewordsRow < codewords.Length; codewordsRow++)
            {
               if (codewords[codewordsRow] == null)
               {
                  continue;
               }
               if (!codewords[codewordsRow].HasValidRowNumber)
               {
                  adjustRowNumbers(barcodeColumn, codewordsRow, codewords);
               }
            }
         }
         return unadjustedCount;
      }