Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片预处理 #5

Open
LeoRainly opened this issue Sep 3, 2024 · 1 comment
Open

图片预处理 #5

LeoRainly opened this issue Sep 3, 2024 · 1 comment

Comments

@LeoRainly
Copy link

LeoRainly commented Sep 3, 2024

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

@AshkanGanj
Copy link
Member

Hi, could you please ask your question in English?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants