Пример #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 setUp(self):
        super().setUp()
        self.config = load_config()

        self.gl_executor = None
        self.releasables = []

        support.silent_make_dir(self.debug_dir())
Пример #4
0
    def setUp(self):
        super().setUp()
        self.config = load_config()

        self.gl_executor = None
        self.releasables = []

        support.silent_make_dir(self.debug_dir())
Пример #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)
Пример #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)