import LuminanceSource from './LuminanceSource' ; import BitArray from './common/BitArray' ; import BitMatrix from './common/BitMatrix' ; author dswitkin google abstract class Binarizer { protected constructor ( private source ) { } public getLuminanceSource ( ) { return this . source ; } param y param row return throws public abstract getBlackRow ( y , row ) ; return throws public abstract getBlackMatrix ( ) ; param source return public abstract createBinarizer ( source ) ; public getWidth ( ) { return this . source . getWidth ( ) ; } public getHeight ( ) { return this . source . getHeight ( ) ; } } export default Binarizer ;