HybridDepth icon indicating copy to clipboard operation
HybridDepth copied to clipboard

图片预处理

Open LeoRainly opened this issue 1 year ago • 0 comments

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"))) 这里把第一这张图片名作为焦距是为什么呢,另外可以解释下预处理流程吗 (萌新请教 谢谢大佬)

LeoRainly avatar Sep 03 '24 08:09 LeoRainly