123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <?php
- namespace Zxing;
- use Zxing\Common\BitArray;
- use Zxing\Common\BitMatrix;
- abstract class Binarizer
- {
- private $source;
- protected function __construct($source)
- {
- $this->source = $source;
- }
-
- public final function getLuminanceSource()
- {
- return $this->source;
- }
-
- public abstract function getBlackRow($y, $row);
-
- public abstract function getBlackMatrix();
-
- public abstract function createBinarizer($source);
- public final function getWidth()
- {
- return $this->source->getWidth();
- }
- public final function getHeight()
- {
- return $this->source->getHeight();
- }
- }
|