singer-yang / Aberration-Aware-Depth-from-Focus

[ICCP & TPAMI 2023] Official code for the paper "Aberration-Aware Depth-from-Focus"
https://vccimaging.org/Publications/Yang2023AATDfF/
19 stars 7 forks source link

关于焦点精度的问题 #7

Open TianYinchen56 opened 1 month ago

TianYinchen56 commented 1 month ago

当聚焦距离为1500mm时,psf值理应最小。可为什么源码提供的1_fit_psfnet.py跑出来的结果 image 无论是ground truth还是模型的值都不是一个点?我修改了optics.py中的refocus函数,发现 image 将o=o0.2改成o1.5能够得到正确的结果

singer-yang commented 1 month ago

您好,感谢你的反馈。refocus 精度取决于aperture 的大小,在之前版本中refocus 函数使用了小的aperture (o*=0.2),后来我们发现了这个问题,但是这个repo 的代码没有能够及时更新。正确的做法应该是把这一行注释掉,可以提交一个pull request 吗?谢谢!