Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
0
    def setUp(self):
        super().setUp()
        self.config = load_config()

        self.gl_executor = None
        self.releasables = []

        support.silent_make_dir(self.debug_dir())
Exemplo n.º 4
0
    def setUp(self):
        super().setUp()
        self.config = load_config()

        self.gl_executor = None
        self.releasables = []

        support.silent_make_dir(self.debug_dir())
Exemplo n.º 5
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)
Exemplo n.º 6
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)