Single image defocus map estimation through patch blurriness classification and its applications
Open Access
- 25 July 2022
- journal article
- research article
- Published by Springer Nature in The Visual Computer
- Vol. 39 (10) , 4555-4571
Abstract
Depth information is useful in many image processing applications. However, since taking a picture is a process of projection of a 3D scene onto a 2D imaging sensor, the depth information is embedded in the image. Extracting the depth information from the image is a challenging task. A guiding principle is that the level of blurriness due to defocus is related to the distance between the object and the focal plane. Based on this principle and the widely used assumption that Gaussian blur is a good model for defocus blur, we formulate the problem of estimating the spatially varying defocus blurriness as a Gaussian blur classification problem. We solve the problem by training a deep neural network to classify image patches into one of the 20 levels of blurriness. We have created a dataset of more than 500,000 image patches of size $$32\times 32$$ which does not require human labelling. The dataset is used to train and test several well-known network models. We find that MobileNetV2 is suitable for this application due to its low memory requirement and high accuracy. The trained model is used to determine the patch blurriness which is then refined by applying an iterative weighted guided filter. The result is a defocus map that carries the information of the degree of blurriness for each pixel. We compare the proposed method with state-of-the-art techniques and we demonstrate its successful applications in adaptive image enhancement and defocus magnification limited to images that present a clear distinction between defocus levels.
Keywords
Funding Information
- La Trobe University
This publication has 74 references indexed in Scilit:
- Defocus map estimation from a single imagePattern Recognition, 2011
- Robust defocus blur identification in the context of blind image quality assessmentSignal Processing: Image Communication, 2007
- Defocus MagnificationComputer Graphics Forum, 2007
- Image and depth from a conventional camera with a coded apertureACM Transactions on Graphics, 2007
- Depth from Defocus Estimation in Spatial DomainComputer Vision and Image Understanding, 2001
- Image enhancement via adaptive unsharp maskingIEEE Transactions on Image Processing, 2000
- A cubic unsharp masking technique for contrast enhancementSignal Processing, 1998
- Nonlinear unsharp masking methods for image contrast enhancementJournal of Electronic Imaging, 1996
- Image blur as a pictorial depth cueProceedings Of The Royal Society B-Biological Sciences, 1996
- Model for spherical aberration in a single radial gradient-rod lensApplied Optics, 1984