Example #1
0
 def dump_debug_matrix_by_hue(self, path, mat):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         img = support.array_to_rgb_by_hue(mat)[:, :, ::-1]
         img = np.uint8(img)
         support.save_image(path, img)
 def dump_debug_matrix_by_hue(self, path, mat):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         img = support.array_to_rgb_by_hue(mat)[:, :, ::-1]
         img = np.uint8(img)
         support.save_image(path, img)
Example #3
0
 def dump_debug_img(self, path, img):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         support.save_image(path, img)
 def dump_debug_img(self, path, img):
     if self.with_debug_output():
         path = self.debug_dir() / path
         support.silent_make_dir(path.parent)
         support.save_image(path, img)