Hybrid Diffusion and FFT Convolution for Real-Time Bokeh Rendering
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing depth-of-field (DOF) techniques in computer graphics struggle to produce high-quality Bokeh effects, as diffusion equations only generate Gaussian-like blur, lacking polygon shapes and selectively highlighted bright spots, while FFT-based convolution is underdeveloped due to restrictions on fixed kernel shapes, limiting real-time image processing efficiency and performance.
Innovation Solution
A hybrid approach combining diffusion blurring and FFT-based convolution is used to enhance the Bokeh effect by applying a convolution kernel representing the geometric shape of a camera aperture, allowing for multi-threaded parallel processing on graphic processors to achieve high-fidelity DOF visual effects.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Manufacturing precision
If diffusion equations are used to simulate DOF effect, then Gaussian-like blur can be achieved, but polygon shape Bokeh effect and selectively highlighted bright spots cannot be produced
Solution Approach 1:
The patent combines diffusion equations and FFT-based convolution into a hybrid DOF simulation system. The diffusion component handles general blur while the FFT component specifically processes bright regions to generate polygon-shaped Bokeh effects, thereby merging two different technical approaches to achieve both Gaussian blur and Bokeh effects simultaneously.
Solution Approach 2:
The patent applies different processing methods to different regions of the image: diffusion blur is applied to the entire image while FFT-based convolution with polygon kernels is specifically applied to bright regions. This local differentiation allows the system to produce Bokeh effects selectively in appropriate areas without processing the entire image with the more complex FFT method.
2Productivity
If FFT-based convolution is used for DOF effect, then computing efficiency can be improved, but fixed kernel shape restriction limits Bokeh effect quality
Solution Approach 1:
The patent makes the kernel shape dynamic by allowing it to change based on the desired aperture shape. Instead of using a fixed kernel, the system generates polygon-shaped kernels that can be configured to match different aperture geometries (circular, hexagonal, rectangular, etc.), enabling the FFT-based convolution to adapt to various Bokeh effect requirements while maintaining computational efficiency.
Solution Approach 2:
The patent changes the parameters of the convolution kernel, specifically its shape and size, to match the desired aperture configuration. By adjusting the kernel parameters rather than changing the fundamental algorithm, the system maintains the computational efficiency of FFT-based convolution while achieving versatile Bokeh effects with different geometric shapes.
3Manufacturing precision
If gather or scatter algorithms are used to produce DOF effects with polygon filters, then Bokeh effect quality can be improved, but computing performance and real-time processing capability deteriorate
Solution Approach 1:
The patent replaces the traditional gather/scatter algorithmic approach with an FFT-based convolution approach. Instead of using complex ray-tracing or particle-based methods to achieve polygon-shaped Bokeh effects, the system substitutes these with frequency-domain convolution operations that leverage the mathematical properties of FFT to achieve both quality and performance.
Data Source
AI summary
Systems and methods for rendering depth-of-field visual effect on images with high computing efficiency and performance. A diffusion blurring process and a Fast Fourier Transform (FFT)-based convolution are combined to achieve high-fidelity depth-of-field visual effect with Bokeh spots in real-time applications. The brightest regions in the background of an original image are enhanced with Bokeh effect by virtue of FFT convolution with a convolution kernel. A diffusion solver can be used to blur the background of the original image. By blending the Bokeh spots with the image with gradually blurred background, a resultant image can present an enhanced depth-of-field visual effect. The FFT-based convolution can be computed with multi-threaded parallelism.


