public BinaryBitmap(Binarizer binarizer) { if (binarizer == null) { throw new System.ArgumentException("Binarizer must be non-null."); } this.binarizer = binarizer; matrix = null; }