Home
last modified time | relevance | path

Searched refs:moduleSize (Results 1 – 25 of 55) sorted by relevance

123

/dports/finance/weberp/webERP/includes/barcodepack/
H A Dclass.barcode.php47 protected $moduleSize = null; variable in barcode
54 * @param int $moduleSize
56 public function __construct($text, $moduleSize=self::MODULE_SIZE) argument
67 $moduleSize = (int) $moduleSize;
68 if($moduleSize >= self::MIN_MODULE_SIZE && $moduleSize <= self::MAX_MODULE_SIZE) {
69 $this->moduleSize = $moduleSize;
H A Dclass.linearBarcode.php48 public function __construct($text, $moduleSize=2, $allowedChars=null) argument
51 parent::__construct($text, $moduleSize);
106 $margin = $this->margin*$this->moduleSize;
107 $im = ImageCreate($this->getBarcodeLen()*$this->moduleSize+(2*$margin),
124 imagefilledrectangle($im, $pos*$this->moduleSize+$margin, $margin,
125 ($pos+1)*$this->moduleSize+$margin,
126 $this->height-5*$this->moduleSize+$margin, $color);
136 imagefilledrectangle($im, $pos*$this->moduleSize+$margin, $margin,
137 ($pos+1)*$this->moduleSize+$margin, $this->height+$margin,
150 $this->getBarcodeLen()*$this->moduleSize/2-$textWidth/2+$margin,
H A Dclass.upc.php79 public function __construct($text, $moduleSize) argument
82 parent::__construct($text, $moduleSize, $this->allowedChars);
171 $margin = $this->margin*$this->moduleSize;
180 $im2 = ImageCreate($this->getBarcodeLen()*$this->moduleSize+(2*$margin)+$margin,
183 …imagecopy($im2, $im, $margin, 0, 0, 0, $this->getBarcodeLen()*$this->moduleSize+(2*$margin), $this…
197 $this->getBarcodeLen()*$this->moduleSize/4-$textWidth/2+2*$margin,
202 …$this->getBarcodeLen()*$this->moduleSize-$this->getBarcodeLen()*$this->moduleSize/4-$textWidth/2+2…
H A Dclass.ean13.php70 public function __construct($text, $moduleSize) argument
73 parent::__construct($text, $moduleSize, $this->allowedChars);
162 $margin = $this->margin*$this->moduleSize;
172 $im2 = ImageCreate($this->getBarcodeLen()*$this->moduleSize+(2*$margin)+$margin,
175 …imagecopy($im2, $im, $margin, 0, 0, 0, $this->getBarcodeLen()*$this->moduleSize+(2*$margin), $this…
196 $this->getBarcodeLen()*$this->moduleSize/4-$textWidth/2+2*$margin,
202 …$this->getBarcodeLen()*$this->moduleSize-$this->getBarcodeLen()*$this->moduleSize/4-$textWidth/2+2…
H A Dclass.s2of5.php57 public function __construct($text, $moduleSize) argument
61 parent::__construct($text, $moduleSize, $this->allowedChars);
H A Dclass.i2of5.php61 public function __construct($text, $moduleSize) argument
64 parent::__construct($text, $moduleSize, $this->allowedChars);
H A Dclass.code128.php175 * @param int $moduleSize
177 public function __construct($text, $moduleSize=2) argument
204 parent::__construct($text, $moduleSize, $allowedChars);
/dports/www/zend-framework/ZendFramework-2.4.13/library/Zend/Barcode/Renderer/
H A DPdf.php38 protected $moduleSize = 0.5; variable in Zend\\Barcode\\Renderer\\Pdf
110 $x[] = $point[0] * $this->moduleSize + $this->leftOffset;
111 $y[] = $page->getHeight() - $point[1] * $this->moduleSize - $this->topOffset;
115 $y[0] -= ($this->moduleSize / 2);
116 $y[3] -= ($this->moduleSize / 2);
119 $y[1] += ($this->moduleSize / 2);
120 $y[2] += ($this->moduleSize / 2);
132 $page->setLineWidth($this->moduleSize);
169 $page->setFont(Font::fontWithPath($font), $size * $this->moduleSize * 1.2);
174 $size * $this->moduleSize
[all …]
H A DAbstractRenderer.php69 protected $moduleSize = 1; variable in Zend\\Barcode\\Renderer\\AbstractRenderer
303 $this->moduleSize = floatval($value);
313 return $this->moduleSize;
380 $barcodeHeight = $this->barcode->getHeight(true) * $this->moduleSize;
395 $barcodeWidth = $this->barcode->getWidth(true) * $this->moduleSize;
/dports/textproc/zxing-cpp/zxing-cpp-1.2.0/core/src/qrcode/
H A DQRDetector.cpp198 auto moduleSize = (ms_a + ms_b) / 2; in EstimateDimension() local
200 int dimension = std::lround(distance(a, b) / moduleSize) + 7; in EstimateDimension()
203 return {dimension + error, moduleSize, std::abs(error)}; in EstimateDimension()
252 int moduleSize = static_cast<int>(best.ms + 1); in SampleAtFinderPatternSet() local
279 if (!image.isIn(PointI(brInter), 3 * moduleSize)) in SampleAtFinderPatternSet()
285 auto brCoR = CenterOfRing(image, PointI(brInter), moduleSize * 4, 1, false).value_or(brInter); in SampleAtFinderPatternSet()
336 float moduleSize = float(width) / dimension; in DetectPure() local
338 !image.isIn(PointF{left + moduleSize / 2 + (dimension - 1) * moduleSize, in DetectPure()
339 top + moduleSize / 2 + (dimension - 1) * moduleSize})) in DetectPure()
347 log(PointF(left + (x + .5f) * moduleSize, top + (y + .5f) * moduleSize)); in DetectPure()
[all …]
/dports/graphics/opencv/opencv-4.5.3/contrib/modules/wechat_qrcode/src/zxing/qrcode/detector/
H A Dalignment_pattern.cpp22 bool AlignmentPattern::aboutEquals(float moduleSize, float i, float j) const { in aboutEquals() argument
23 if (abs(i - getY()) <= moduleSize && abs(j - getX()) <= moduleSize) { in aboutEquals()
24 float moduleSizeDiff = abs(moduleSize - estimatedModuleSize_); in aboutEquals()
H A Ddetector.cpp142 float moduleSize = alignmentPattern->getModuleSize() / 5.0; in hasSameResult() local
144 if (moduleSize < 1.0) { in hasSameResult()
145 moduleSize = 1.0; in hasSameResult()
192 float moduleSize = (moduleSizeX_ + moduleSizeY_) / 2.0f; in processFinderPatternInfo() local
200 moduleSizeX_ = moduleSize; in processFinderPatternInfo()
201 moduleSizeY_ = moduleSize; in processFinderPatternInfo()
203 result->possibleModuleSize = moduleSize; in processFinderPatternInfo()
205 if (moduleSize < 1.0f) { in processFinderPatternInfo()
538 double rectSize = moduleSize * 7; in findAlignmentWithFitLine()
565 bottomLeftPoints, moduleSize); in findAlignmentWithFitLine()
[all …]
H A Dfinder_pattern.cpp38 bool FinderPattern::aboutEquals(float moduleSize, float i, float j) const { in aboutEquals() argument
39 if (abs(i - getY()) <= moduleSize && abs(j - getX()) <= moduleSize) { in aboutEquals()
40 float moduleSizeDiff = abs(moduleSize - estimatedModuleSize_); in aboutEquals()
H A Dalignment_pattern_finder.cpp32 int width, int height, float moduleSize) in AlignmentPatternFinder() argument
39 moduleSize_(moduleSize) {} in AlignmentPatternFinder()
41 AlignmentPatternFinder::AlignmentPatternFinder(Ref<BitMatrix> image, float moduleSize) in AlignmentPatternFinder() argument
43 moduleSize_(moduleSize) {} in AlignmentPatternFinder()
H A Dalignment_pattern_finder.hpp43 float moduleSize);
44 AlignmentPatternFinder(Ref<BitMatrix> image, float moduleSize);
H A Ddetector.hpp82 Ref<ResultPoint> bottomLeft, float moduleSize,
114 Ref<AlignmentPattern> getNearestAlignmentPattern(int tryFindRange, float moduleSize,
118 void fixAlignmentPattern(float &alignmentX, float &alignmentY, float moduleSize);
H A Dfinder_pattern_finder.cpp566 int moduleSize = ((totalModuleSize - stateCountINT[0] - stateCountINT[4])) / 5; in foundPatternCross() local
568 int maxVariance = moduleSize; in foundPatternCross()
570 if (moduleSize > minModuleSizeINT) maxVariance = moduleSize / 2; in foundPatternCross()
575 bool leftFit = (abs(moduleSize - startCountINT) <= maxVariance); in foundPatternCross()
576 bool rightFit = (abs(moduleSize - endCountINT) <= maxVariance); in foundPatternCross()
580 moduleSize = totalModuleSize / 7; in foundPatternCross()
583 moduleSize = (totalModuleSize - stateCountINT[4]) / 6; in foundPatternCross()
588 moduleSize = (totalModuleSize - stateCountINT[0]) / 6; in foundPatternCross()
597 if (abs(moduleSize - stateCountINT[1]) <= maxVariance && in foundPatternCross()
598 abs(3 * moduleSize - stateCountINT[2]) <= 3 * maxVariance && in foundPatternCross()
[all …]
H A Dalignment_pattern.hpp25 bool aboutEquals(float moduleSize, float i, float j) const;
/dports/textproc/zxing-cpp/zxing-cpp-1.2.0/core/src/
H A DPattern.h177 const float moduleSize = (float)width / SUM; variable
179 if (minQuiteZone && spaceInPixel < minQuiteZone * moduleSize - 1)
183 moduleSizeRef = moduleSize;
193 return moduleSize;
205 const float moduleSize = (float)width / SUM; variable
207 if (minQuiteZone && spaceInPixel < minQuiteZone * moduleSize - 1)
211 moduleSizeRef = moduleSize;
221 return moduleSize;
261 float moduleSize = static_cast<float>(view.sum(LEN)) / SUM; in NormalizedPattern() local
266 float v = view[i] / moduleSize; in NormalizedPattern()
/dports/graphics/libdmtx/libdmtx-0.7.5/
H A Ddmtxencode.c36 enc->moduleSize = 5; in dmtxEncodeCreate()
114 enc->moduleSize = value; in dmtxEncodeSetProp()
146 return enc->moduleSize; in dmtxEncodeGetProp()
208 width = 2 * enc->marginSize + (enc->region.symbolCols * enc->moduleSize); in dmtxEncodeDataMatrix()
209 height = 2 * enc->marginSize + (enc->region.symbolRows * enc->moduleSize); in dmtxEncodeDataMatrix()
431 sxy = 1.0/enc->moduleSize; in PrintPattern()
438 dmtxMatrix3Scale(m2, enc->moduleSize, enc->moduleSize); in PrintPattern()
462 for(i = pixelRow; i < pixelRow + enc->moduleSize; i++) { in PrintPattern()
463 for(j = pixelCol; j < pixelCol + enc->moduleSize; j++) { in PrintPattern()
471 for(i = pixelRow; i < pixelRow + enc->moduleSize; i++) { in PrintPattern()
[all …]
/dports/graphics/dmtx-utils/dmtx-utils-0.7.6/dmtxwrite/
H A Ddmtxwrite.c62 dmtxEncodeSetProp(enc, DmtxPropModuleSize, opt.moduleSize); in main()
125 opt.moduleSize = 5; in GetDefaultOptions()
193 err = StringToInt(&opt->moduleSize, optarg, &ptr); in HandleArgs()
194 if(err != DmtxPass || opt->moduleSize <= 0 || *ptr != '\0') in HandleArgs()
600 width = 2 * enc->marginSize + (enc->region.symbolCols * enc->moduleSize); in WriteSvgFile()
601 height = 2 * enc->marginSize + (enc->region.symbolRows * enc->moduleSize); in WriteSvgFile()
644 opt->moduleSize, opt->moduleSize, in WriteSvgFile()
645 col * opt->moduleSize + opt->marginSize, in WriteSvgFile()
646 rowInv * opt->moduleSize + opt->marginSize, style); in WriteSvgFile()
/dports/databases/phpmyadmin5/phpMyAdmin-5.1.2-all-languages/vendor/bacon/bacon-qr-code/src/Renderer/
H A DImageRenderer.php47 $moduleSize = $size / $totalSize;
51 $this->imageBackEnd->scale((float) $moduleSize);
/dports/www/typo3-11/typo3_src-11.5.7/vendor/bacon/bacon-qr-code/src/Renderer/
H A DImageRenderer.php47 $moduleSize = $size / $totalSize;
51 $this->imageBackEnd->scale((float) $moduleSize);
/dports/www/tikiwiki/tiki-21.2/vendor_bundled/vendor/bacon/bacon-qr-code/src/Renderer/
H A DImageRenderer.php47 $moduleSize = $size / $totalSize;
51 $this->imageBackEnd->scale((float) $moduleSize);
/dports/textproc/zxing-cpp/zxing-cpp-1.2.0/core/src/oned/
H A DODDataBarCommon.cpp92 float moduleSize = static_cast<float>(view.sum(8)) / numModules; in ReadDataCharacterRaw() local
97 float v = *iter / moduleSize; in ReadDataCharacterRaw()

123