def _save(self): img = utils.np_to_qimage(self.main_window.np_img) img.save(self.filename, ext_mappings[self.filename.lower().split('.')[-1]])
def save_any(np_img, filename): img = utils.np_to_qimage(np_img) img.save(filename, ext_mappings[filename.lower().split('.')[-1]])
def _show_np_image(self): img = utils.np_to_qimage(self.np_img) self._show_image(img)