static BWImage regionToBWImage_inverted(IImageRegion region) { ret region == null ?: new RegionToBWImage(region) .bgColor(255).color(0)!; }