图片预处理
LeoRainly opened this issue · 0 comments
LeoRainly commented
from utils.io import prepare_input_image
data_dir = 'focal stack images directory'
####Load the focal stack images
focal_stack, rgb_img, focus_dist = prepare_input_image(data_dir)
使用prepare_input_image进行预处理时,如
focus_dist = np.append(focus_dist, float(image_files[0].split("_")[-1].removesuffix(".png")))
这里把第一这张图片名作为焦距是为什么呢,另外可以解释下预处理流程吗
(萌新请教 谢谢大佬)