[Paper Review] NeRFocus: Neural Radiance Field for 3D Synthetic Defocus
NeRFocus proposes a novel NeRF-based framework that directly renders 3D synthetic defocus effects by modeling thin-lens imaging through inverse beam path tracing and frustum-based volume rendering. It enables controllable depth-of-field effects with adjustable aperture size, focus distance, and camera pose, while maintaining NeRF-level performance in training time, parameter count, and rendering quality for large depth-of-field images.
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.
Motivation & Objective
- To address the lack of native 3D defocus effect support in standard NeRF, which is based on a pinhole camera model.
- To enable direct rendering of realistic 3D defocus effects without post-processing or additional datasets.
- To maintain NeRF's efficiency and rendering quality while adding flexible control over aperture size, focus distance, and camera pose.
- To develop a training strategy that generalizes well to diverse defocus effects using only standard large depth-of-field data.
Proposed method
- Invert the thin-lens imaging process to model beam paths from each sensor plane point back to scene points, generalizing to pixel-level beam paths.
- Use a circle of confusion (CoC) model to represent the spread of rays from a scene point due to finite aperture, forming composite cones per pixel.
- Divide each composite cone into frustums and assume a 3D Gaussian distribution for radiance and density within each frustum to enable volume rendering.
- Propose a probabilistic training (p-training) strategy that uses Gaussian blur kernels of varying scales on ground-truth images to supervise the MLP, with aperture size set to zero during training.
- Train the MLP using a loss between rendered colors (from composite cones) and blurred ground-truth images, enabling generalization to non-zero aperture settings at test time.
- Leverage positional encoding and a multilayer perceptron (MLP) to predict expected radiance and density per frustum, using expected positional encoding as input.
Experimental results
Research questions
- RQ1Can NeRF be extended to natively render 3D defocus effects with controllable parameters such as aperture size and focus distance?
- RQ2Is it possible to achieve realistic defocus effects without post-processing or additional datasets with defocus annotations?
- RQ3Can a training strategy based on blurred ground-truth images generalize to diverse defocus settings while preserving NeRF's efficiency and rendering quality?
- RQ4How does the proposed p-training strategy compare to standard NeRF training in terms of computational cost and model performance?
Key findings
- NeRFocus achieves PSNR of 28.26 on the large depth-of-field setting (aperture size = 0), comparable to NeRF (29.00) and mip-NeRF (28.83), indicating no performance sacrifice.
- The model maintains the same training time (55.6 hours) and parameter count (613k) as mip-NeRF, showing no additional computational cost.
- Qualitative results confirm that increasing aperture size increases blur (shallow DOF), and increasing focus distance shifts the DOF forward, matching optical principles.
- The model generalizes well to unseen defocus settings despite p-training using only five blur kernel scales, demonstrating robustness of the probabilistic training strategy.
- NeRFocus can render high-quality 3D defocus effects with disentangled control over camera pose, focus distance, and aperture size, enabling dynamic and realistic depth-of-field effects.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.