added new demo in example/region_utils for maskOutOfRegions