def _load_image_mask(self):
# Sometimes an approximate mask can be produced based on Google range data
# the mask indicates which parts of the image are not facade
mask_path = os.path.join(os.path.dirname(self.path), 'mask.png')
if self.use_mask and os.path.isfile(mask_path):
self.data_mask = rgb2gray(imread(mask_path)) > 0.5
else:
self.data_mask = None
评论列表
文章目录