static BWImage regionToBWImage(IImageRegion region) { ret region == null ?: new RegionToBWImage(region)!; }