39
Adaptive Kernel Regression for Image Processing and Reconstruction Peyman Milanfar* EE Department University of California, Santa Cruz *Joint work with Sina Farsiu, Hiro Takeda AFOSR Sensing Program Review, June 21, 2007

Adaptive Kernel Regression for Image Processing and Reconstruction

  • Upload
    others

  • View
    23

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Adaptive Kernel Regression for Image Processing and Reconstruction

Adaptive Kernel Regression for Image Processing and

ReconstructionPeyman Milanfar*

EE DepartmentUniversity of California, Santa Cruz

*Joint work with Sina Farsiu, Hiro Takeda

AFOSR Sensing Program Review, June 21, 2007

Page 2: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Summary• Motivation:

– Existing methods for processing, reconstruction, and interpolation of spatial data are too strongly dependent upon underlying assumptions about signal and noise models.

– Develop “universal” and robust methods based on adaptive nonparametric statistics for processing and reconstruction of image and video data.

• Goal:– Demonstrate the applicability of the Kernel Regression

framework to a wide class of problems, producing algorithms competitive with state of the art.

Page 3: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Outline

• Introduction and Motivation• Classic Kernel Regression• Data-Adaptive Kernel Regression• Experiments• Conclusion

Page 4: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Data Sampling Scenarios

Full samples

Denoising

Incomplete samples

Denoising + interpolation

Irregular samples

Denoising + reconstruction

Possibly random positions

H. Takeda, S. Farsiu, and P. Milanfar, "Kernel Regression for Image Processing and Reconstruction" IEEE Trans. on Image Processing, vol. 16, no. 2, Feb. 2007

Want a unified method for treating all these scenarios

Page 5: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Outline

• Introduction and Motivation• Classic Kernel Regression• Data-Adaptive Kernel Regression• Experiments• Conclusion

Page 6: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Kernel Regression Framework

• The data model

A sample

The regression function

Zero-mean, i.i.d noise (No other assump.)

The number of samplesThe sampling position

• The specific form of may remain unspecified.

Page 7: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Local Approximation in KR• The data model

• Local representation (N-terms Taylor expansion)

• Note– We really only need to estimate the first unknown, .– Other localized representations are also possible.

Unknowns

Page 8: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

KR Optimization Problem

• The local representation is valid when xi and x are close.• We should give a higher weight to nearby samples

N+1 terms

This term gives the estimated

pixel value at x

The regression order

The choice of the kernel function is

open. e.g. Gaussian

Smoothing parameter

• Weighted Least Squares

Page 9: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Classic Kernel Regression as a Locally Linear Filter

• The Net Effect of Classic L2 KR

Equivalent kernel

Page 10: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

• Four factors to be considered– Kernel function ( ):

– The Regression order ( ): Bias/Variance tradeoff

– Basis Function: Different polynomial bases, wavelets etc., over-complete dictionaries

– Smoothing matrix ( ):• Data-adaptive choice will produce locally nonlinear

filters with supeiror performance

Moving Beyond “Classical”

Page 11: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Outline

• Introduction and Motivation• Classic Kernel Regression• Data-Adaptive Kernel Regression• Experiments• Conclusion

Page 12: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Data-Adapted Kernels

Data Adapted KernelsClassic Kernels

Classic kernel Data-adapted kernel

Page 13: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

A Special Case:The “Separable” Kernel

• Consider the denoising problem with regularly sampled data

• Special case: N = 0, m=2

With Gaussian Kernels, this is justthe Bilateral filter!(Tomasi, et al. ‘98)

Spatial kernel Radiometric kernel

Radiometric smoothness

N>0 can generalize the bilateral filter!

Page 14: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Bilateral Kernel is Unstable

Essentially noiseless case Fairly Noisy case

Page 15: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Steering Kernel MethodLocal dominant

orientation estimate based on local

gradient covariance

5 10 15 20 25 30 35 40 45 50

5

10

15

20

25

30

35

40

45

50

Page 16: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Better Approach:Parameterization

Scaling parameter

Elongation matrix

Rotation matrix.

Page 17: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Steering Kernel is Stable!

Essentially noiseless case Fairly Noisy case

Page 18: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

The Net Effect of Kernel Regressorsin L2

Depends only on x-xi

Classic Kernel: Locally Linear Filtering:

Steering Kernel: Locally Non-Linear Filtering:

Depends on both x-xi and y-yi

Page 19: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Iterated Application of Steering

• Steering kernel:

Given data

Orientation estimation

Steering kernelregression

5 10 15 20 25 30 35 40 45 50

5

10

15

20

25

30

35

40

45

50

Takeda, H., S. Farsiu, P. Milanfar, “Kernel Regression for Image Processing and Reconstruction”,IEEE Transactions on Image Processing, Vol. 16, No. 2, pp. 349-366, February 2007.

Iteration!

•Direction•Strength

Page 20: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Iterative Algorithm

InitialGradient Est.

SmoothingMatrix Est. Kernel Reg.

Noisy data

SmoothingMatrix Est. Kernel Reg.

Initialize:

Iterate:

Page 21: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Outline

• Introduction and Motivation• Classic Kernel Regression• Data-Adaptive Kernel Regression• Experiments• Conclusion

Page 22: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Gaussian Noise Removal (STD=25)

Original image Noisy image, RMSE=24.87 (SNR=5.69dB)

Page 23: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Gaussian Noise Removal (STD=25)

Portilla and Simonceli,

RMSE=6.64Bayes Least

Square-GaussianScale Mixture

(2003)

Iterative steeringkernel regression,N=2, RMSE=6.63

Kervrann, et al.RMSE=6.61

Optimal spatial adaptation

(2006)

Buades, et al. Non-Local

Means,RMSE=8.45

Page 24: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Gaussian Noise Removal (STD=25)

Portilla and Simonceli,

RMSE=6.64Bayes Least

Square-GaussianScale Mixture

(2003)

Iterative steeringkernel regression,N=2, RMSE=6.63

Kervrann,RMSE=6.61

Optimal spatial adaptation

(2005)

Non-Local Means,

RMSE=8.45

Page 25: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Compression Artifact Removal (Deblocking)

Original pepper image JPEG with quality of 10, RMSE=9.76

Page 26: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Compression Artifact Removal (Deblocking)

Portilla and Simonceli,

RMSE=8.80Bayes Least

Square-GaussianScale Mixture

(2003)

Iterative steeringkernel regression,N=2, RMSE=8.48

Kervrann,RMSE=8.85

Optimal spatial adaptation

(2005)

Non-Local Mean,

RMSE=8.64

Page 27: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Film Grain Reduction (Real Noise)

Real noisy image

Page 28: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Film Grain Reduction (Real Noise)

Portilla and Simonceli,

Bayes Least Square-Gaussian

Scale Mixture,Denoising on

YCrCb channels

Iterative steeringkernel regression,

N=2,Denoising on

YCrCb channels

Kervrann,Optimal spatial

adaptation,Denoising on

YCrCb channels

Non-Local Mean,Denoising on

YCrCb channels

Page 29: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Portilla and Simonceli,

Bayes Least Square-Gaussian

Scale Mixture,Denoising on

YCrCb channels

Iterative steeringkernel regression,

Denoising on YCrCb channels

Kervrann,Optimal spatial

adaptation,Denoising on

YCrCb channels

Comparison in Absolute Residual Image in the Y channel

Non-Local Mean,Denoising on

YCrCb channels

Page 30: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Real Noise Reduction

Real noisy image

Page 31: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Real Noise Reduction

Portilla and Simonceli,

Bayes Least Square-Gaussian

Scale Mixture,Denoising on

YCrCb channels

Iterative steeringkernel regression,

N=2,Denoising on

YCrCb channels

Kervrann,Optimal spatial

adaptation,Denoising on

YCrCb channels

Non-Local Mean,Denoising on

YCrCb channels

Page 32: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

What about SKR for Interpolation?

The Problem: At the location x where we wish to interpolate, there is no pixel value (yet)

Denoising Interpolation

?yi

Pixel Exists Pixel Doesn’tExist

The Solution: Produce a “pilot”, low-complexity, estimate of the pixelthen apply the more sophisticated adaptive kernel techniques described earlier.

?

Page 33: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Illustration:30% of Pixels Retained Local Constant Kernel Estimate

5 10 15 20 25 30 35 40 45 50

5

10

15

20

25

30

35

40

45

50

Steering Kernel Estimate

Page 34: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Interpolation of Irregular Samples

Irregularly down-sampled image

(Randomly delete 85% of pixels)

Iterative steeringkernel regression,N=2, RMSE=8.48

Delaunay-spline smoother,

RMSE=9.05

Classic kernel regression, N=2

RMSE=9.69

Page 35: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Deblurring

• Taking the PSF into account:

• The model in matrix form, we have

Point spread function

Unknown function

ShiftThe Taylor expansion at

The Taylor expansion at

Page 36: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Deblurring Example PSF:19x19 uniform, BSNR:40dB

The original image The degraded imageRMSE = 29.67

Page 37: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Deblurring Example PSF:19x19 uniform, BSNR:40dB

ForWaRDRMSE = 14.37

LPA-ICIRMSE =13.36

Data-adaptive kernel reg.RMSE = 14.21

Page 38: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Super-resolution Example

MotionEstimation

Resolution enhancement from video frames captured by a commercial webcam(3COM Model No.3719)

ImageReconstruction

(Interpolation, Denoising, and Deblurring)

Adaptive Kernel Regression

Page 39: Adaptive Kernel Regression for Image Processing and Reconstruction

Milanfar et al. EE Dept, UCSC

Conclusion• Adaptive kernel regression is a powerful

tool for a wide class of problems.• It provides results competitive with state of

the art in – denoising, – interpolation, – deblurring, – resolution enhancement.

• Don’t try this at home. Other examples and software are available athttp://www.soe.ucsc.edu/~htakeda