def on_new_stack_result(self, image: Image): """ A new image has been stacked :param image: the result of the stack :type image: Image """ image.origin = "Stacking result" self._last_stacking_result = image.clone() self.purge_queue(self._post_process_queue) self._post_process_queue.put(image.clone())
def on_new_post_processor_result(self, image: Image): """ A new image processing result is here :param image: the new processing result :type image: Image """ image.origin = "Process result" DYNAMIC_DATA.histogram_container = compute_histograms_for_display( image, Controller._BIN_COUNT) DYNAMIC_DATA.post_processor_result = image self._notify_model_observers(image_only=True) self.save_post_process_result()
def _set_image_file_origin(image: Image, path: Path): image.origin = f"FILE : {str(path.resolve())}"