示例#1
0
    def __init__(self, root, im_file, masks_dir, is_debug=True):
        ImageProcessor.__init__(self, root, im_file, masks_dir)

        # keep green channel
        self._image = self.image[:, :, 1].copy()
        self._norm_const = 2.45
        self._is_debug = is_debug
 def __init__(self, data_set, root_model, image_size, channel, lable_size):
     ImageProcessor.__init__(self, image_size)
     self.data_set = data_set
     self.root_model = root_model
     self.datas = np.empty((0, self.image_size, self.image_size, channel))
     self.labels = np.empty((0, lable_size))
 def __init__(self, image_size):
     ImageProcessor.__init__(self, image_size)