static BWImage posterizeBWImage(int brightnessLevels, BWImage img) { PosterizeBWImage x = new(brightnessLevels, img); x.run(); ret x.result; }