Neural radiance fields (NeRF) bring a new wave for 3D interactive experiences. However, as an important part of the immersive experiences, the defocus effects have not been fully explored within NeRF. Some recent NeRF-based methods generate 3D defocus effects in a post-process fashion by utilizing multiplane technology. Still, they are either time-consuming or memory-consuming. This paper proposes a novel thin-lens-imaging-based NeRF framework that can directly render various 3D defocus effects, dubbed NeRFocus. Unlike the pinhole, the thin lens refracts rays of a scene point, so its imaging on the sensor plane is scattered as a circle of confusion (CoC). A direct solution sampling enough rays to approximate this process is computationally expensive. Instead, we propose to inverse the thin lens imaging to explicitly model the beam path for each point on the sensor plane and generalize this paradigm to the beam path of each pixel, then use the frustum-based volume rendering to render each pixel's beam path. We further design an efficient probabilistic training (p-training) strategy to simplify the training process vastly. Extensive experiments demonstrate that our NeRFocus can achieve various 3D defocus effects with adjustable camera pose, focus distance, and aperture size. Existing NeRF can be regarded as our special case by setting aperture size as zero to render large depth-of-field images. Despite such merits, NeRFocus does not sacrifice NeRF's original performance (e.g., training and inference time, parameter consumption, rendering quality), which implies its great potential for broader application and further improvement. Code and video are available at https://github.com/wyhuai/NeRFocus.
翻译:神经光亮场( NeRF) 带来了一个新的3D互动体验浪潮。 但是, 作为沉浸式体验的一个重要部分, 尚未在 NERF 中充分探索去焦点效应。 最近一些基于 NeRF 的方法通过使用多平板技术, 以后处理方式产生3D去焦点效应。 但是, 它们要么耗时, 要么耗时, 要么耗时。 本文提出了一个全新的瘦镜头成像的 NERF 框架, 它可以直接产生各种3D去焦点效果, 被调低了 NeRFowcus。 与针孔不同, 一个场点的微镜再变色图像, 所以传感器上的图像会分散成混乱的圈( COC) 。 直接取样的光线会通过多盘点的光谱图像, 明确模拟传感器上每个点的红外线路径, 并且将这个模式推广到每条直径直径的路径, 使用基于直径直径直径直径直径的图像, 也可以让每条次的精度的精度 进行更深的比直径直径直径更深的校程的校程 。