예제 #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)
예제 #2
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)
예제 #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)
예제 #4
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)