NON-LINEAR INTERPOLATION OF MISSING IMAGE DATA USING MIN-MAX FUNCTIONS

Similar documents
Novel Post-Processing Methods used in Detection of Blotches in Image Sequences

Image Compression for Mobile Devices using Prediction and Direct Coding Approach

P063 ADAPTIVE TRAVEL-TIME AND RAY- PARAMETER INVERSION OF DENSELY SAMPLED 2-D SEISMIC DATA

Silhouette-based Multiple-View Camera Calibration

Adaptive Kernel Regression for Image Processing and Reconstruction

Displacement estimation

Factorization with Missing and Noisy Data

MOTION ESTIMATION WITH THE REDUNDANT WAVELET TRANSFORM.*

Theoretical Concepts of Machine Learning

Linear Methods for Regression and Shrinkage Methods

CS 565 Computer Vision. Nazar Khan PUCIT Lectures 15 and 16: Optic Flow

AN ALGORITHM FOR BLIND RESTORATION OF BLURRED AND NOISY IMAGES

Motion estimation for video compression

An introduction to mesh generation Part IV : elliptic meshing

Efficient Method for Half-Pixel Block Motion Estimation Using Block Differentials

CS5670: Computer Vision

Capturing, Modeling, Rendering 3D Structures

Modern Methods of Data Analysis - WS 07/08

EE795: Computer Vision and Intelligent Systems

5. GENERALIZED INVERSE SOLUTIONS

Adaptive-Mesh-Refinement Pattern

Chapter 4. Matrix and Vector Operations

Visual Tracking (1) Feature Point Tracking and Block Matching

COMPUTER AND ROBOT VISION

Motion and Tracking. Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE)

CPSC 425: Computer Vision

Overview: motion estimation. Differential motion estimation

Robust Signal-Structure Reconstruction

Introduction to Medical Imaging (5XSA0) Module 5

Multiple Model Estimation : The EM Algorithm & Applications

Correcting Radial Distortion of Cameras With Wide Angle Lens Using Point Correspondences

Segmentation and Tracking of Partial Planar Templates

CHAPTER-5 WATERMARKING OF COLOR IMAGES

Smoothers. < interactive example > Partial Differential Equations Numerical Methods for PDEs Sparse Linear Systems

Assignment 4: Mesh Parametrization

A Late Acceptance Hill-Climbing algorithm the winner of the International Optimisation Competition

Chapter 8: Implementation- Clipping and Rasterization

S U N G - E U I YO O N, K A I S T R E N D E R I N G F R E E LY A VA I L A B L E O N T H E I N T E R N E T

An Evolutionary Algorithm for Minimizing Multimodal Functions

Chapter Introduction

Adaptive Filtering using Steepest Descent and LMS Algorithm

Image Coding with Active Appearance Models

PARALLELIZATION OF THE NELDER-MEAD SIMPLEX ALGORITHM

Towards the completion of assignment 1

SUPPLEMENTARY FILE S1: 3D AIRWAY TUBE RECONSTRUCTION AND CELL-BASED MECHANICAL MODEL. RELATED TO FIGURE 1, FIGURE 7, AND STAR METHODS.

Bayesian Methods in Vision: MAP Estimation, MRFs, Optimization

Anisotropic model building with well control Chaoguang Zhou*, Zijian Liu, N. D. Whitmore, and Samuel Brown, PGS

International Journal of Foundations of Computer Science c World Scientic Publishing Company DFT TECHNIQUES FOR SIZE ESTIMATION OF DATABASE JOIN OPERA

Numerical Linear Algebra

CS Data Structures and Algorithm Analysis

AM205: lecture 2. 1 These have been shifted to MD 323 for the rest of the semester.

ERAD Optical flow in radar images. Proceedings of ERAD (2004): c Copernicus GmbH 2004

CS-465 Computer Vision

SELECTIVE ALGEBRAIC MULTIGRID IN FOAM-EXTEND

Nonrigid Surface Modelling. and Fast Recovery. Department of Computer Science and Engineering. Committee: Prof. Leo J. Jia and Prof. K. H.

4.12 Generalization. In back-propagation learning, as many training examples as possible are typically used.

Nonlinear Operations for Colour Images Based on Pairwise Vector Ordering

What have we leaned so far?

Operators-Based on Second Derivative double derivative Laplacian operator Laplacian Operator Laplacian Of Gaussian (LOG) Operator LOG

Image Analysis - Lecture 5

Recent Developments in Model-based Derivative-free Optimization

Mixture Models and EM

Image Processing. Filtering. Slide 1

MRF-based Algorithms for Segmentation of SAR Images

DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS

Motion Estimation. There are three main types (or applications) of motion estimation:

ECE 176 Digital Image Processing Handout #14 Pamela Cosman 4/29/05 TEXTURE ANALYSIS

Subpixel Corner Detection Using Spatial Moment 1)

Statistical Techniques in Robotics (16-831, F10) Lecture#06(Thursday September 11) Occupancy Maps

Segmentation and Grouping

Optical Flow. Adriana Bocoi and Elena Pelican. 1. Introduction

Solving for dynamic user equilibrium

SYNTHETIC SCHLIEREN. Stuart B Dalziel, Graham O Hughes & Bruce R Sutherland. Keywords: schlieren, internal waves, image processing

ELEC Dr Reji Mathew Electrical Engineering UNSW

IN-SITU CALIBRATION OF A REDUNDANT MEASUREMENT SYSTEM FOR MANIPULATOR POSITIONING

Visualization and Analysis of Inverse Kinematics Algorithms Using Performance Metric Maps

Face Hallucination Based on Eigentransformation Learning

Occluded Facial Expression Tracking

THE COMPUTER MODELLING OF GLUING FLAT IMAGES ALGORITHMS. Alekseí Yu. Chekunov. 1. Introduction

Scanning Real World Objects without Worries 3D Reconstruction

FACIAL ANIMATION FROM SEVERAL IMAGES

Image restoration. Restoration: Enhancement:

Comparing different interpolation methods on two-dimensional test functions

Introduction to MATLAB

Lecture 19: November 5

Bias-Variance Tradeos Analysis Using Uniform CR Bound. Mohammad Usman, Alfred O. Hero, Jerey A. Fessler and W. L. Rogers. University of Michigan

Linear Equation Systems Iterative Methods

Combinatorial optimization and its applications in image Processing. Filip Malmberg

Cost Functions in Machine Learning

Today. Golden section, discussion of error Newton s method. Newton s method, steepest descent, conjugate gradient

Bootstrapping Method for 14 June 2016 R. Russell Rhinehart. Bootstrapping

EE613 Machine Learning for Engineers LINEAR REGRESSION. Sylvain Calinon Robot Learning & Interaction Group Idiap Research Institute Nov.

SECTION 5 IMAGE PROCESSING 2

The Lucas & Kanade Algorithm

IEEE TRANSACTIONS ON NEURAL NETWORKS, VOL. 10, NO. 6, NOVEMBER Inverting Feedforward Neural Networks Using Linear and Nonlinear Programming

Efficient Interest Point Detectors & Features

Note Set 4: Finite Mixture Models and the EM Algorithm

Robust Regression. Robust Data Mining Techniques By Boonyakorn Jantaranuson

Probabilistic Facial Feature Extraction Using Joint Distribution of Location and Texture Information

A Robust Two Feature Points Based Depth Estimation Method 1)

Transcription:

NON-LINEAR INTERPOLATION OF MISSING IMAGE DATA USING MIN-MAX FUNCTIONS Steven Armstrong, And C. Kokaram, Peter J. W. Rayner Signal Processing and Communications Laboratory Cambridge University Engineering Department Trumpington Street, Cambridge CB2 lpz, England sa210qeng.cam.ac.uk ack@eng.cam.ac.uk pjwr@eng.cam.ac.uk ABSTRACT This paper proposes the use of min-max functions as a model for the interpolation and reconstruction of missing image data. It is shown how an interpolation equation based on these functions is formed and differentiated. The resulting solution is not closed form, therefore the derived gradient expressions are employed as part of various numerical optimisation schemes. Different interpolations can be found by using the squared and absolute errors - the latter presents a more complicated solution which is discussed. Results are shown for the interpolation of missing data in an image. These are compared with interpolants derived using a 2D AR model and conclusions are drawn about the suitability of the new technique for reconstructing different image features. 1. INTRODUCTION Bright and dark blotches that represent areas of missing pixels are types of degradation that appear frequently on film and video. Often the damage is bad enough that the original image data is completely obliterated. This paper proposes an interpolation scheme based on min-max functions for reconstructing such areas of missing data. Previous work has involved interpolating the missing data using an AR model/predictor as a basis for the interpolation [3],[1]. This method reconstructs fine image detail well, but unfortunately smooths out edges, which are very important for the visual appreciation of an image. The aim of the work is to demonstrate the interpolation capabilities of min-max based interpolation and to show that the scheme performs differently to the AR based method, principally with better reconstruction of edges. The use of the min-max predictor produces a system of non-linear equations which are solved numerically. The solution is made more efficient by employing the analytic gradient expressions that this paper shows how to calculate. These expressions also show that local minima can arise, which complicates the optimisation strategy. The strategy used to produce the results in this paper is described in section 4. The presentation of results in this paper is split into two parts. The first discusses interpolation using the squared error and presents a reconstruction of two images using minmax interpolation and AR interpolation. The second section presents the use of the absolute error for min-max based interpolation. Results demonstrate how this differs from the use of the squared error. Finally, conclusions are drawn in section 7 about the suitability of min-max based interpolation for the reconstruction of missing data in images. 2. INTERPOLATION Linear interpolation using a multidimensional AR model/ predictor is used in [3]. The underlying assumption in this interpolation scheme is that the interpolated data can be determined by choosing values that minimise the sum of the squared prediction errors over the missing area. The model coefficients are estimated using weighted least squares to annul the effect of the missing data. It is then possible to derive a closed form solution to the resulting set of interpolation equations. Detecting the missing areas can be posed as a separate problem, discussed in [2]. This paper proposes the use of the min-max function as the predictor in a non-linear interpolation scheme. An appropriate min-max function for a set of data can be determined using stack filtering methods ([6], [4] and [7]). The min-max signal model - considering here a 1-D signal, y, for simplicity - is y(n)=f*(.... y(n-2),y(n-l),y(n+l),... )+&* (1) where fm is a min-max function of pixels not including y(n) and &n is some prediction error (or excitation or residual). A prediction equation, (l), may be written at every pixel site that involves a missing pixel either at that site, or in the support of the predictor. Then, the sum of the squares of the prediction errors, E = x*&i, is minimised with respect to the values of the missing pixels. It is possible to derive analytic expressions for the derivatives of E and this is described in next section. 3. DIFFERENTIATING THE INTERPOLATION EQUATION The first step to differentiating ae - = adi) E uses the chain rule: 2C*KY(4 - fm(...,y(n - 21, (2)

y(n - l), Y(n + 11,..)I x WI where y(i) is one of the missing pixel values. The next step is to determine w. For this the following results are used: amw), way(i) = 4k - ~(4) (4) where u(k) is the unit step function function that does not depend on y(i). (3) and Ic is a min-max The difficulty that remains is to write down the derivative of a given min-max function using these standard forms. A min-max function, f,,,, can be written as the maximum of a series of minimums, some of which depend on y(i) and some of which do not, for example mat(min(gl), min(gz), min(g3, y(i)), min(g4, y(i))) = maz(min(gl), min(g2), min(maz(min(g3), min(g4)), y(i))) where gi denotes a list of variables that does not include y(i) (for example y(n - 3), y(n - l), y(n + 1)). It can be shown that z = u(y(d) - maz(min(gl), min(g2))) xa(maz(min(g3), min(g4)) - y(i)) (5) The proof of this result involves realising that the following conditions must apply for fm to be y(i) and the derivative equal to 1: and mnz(min(g3), min(g4)) > y(i) maz(min(gl), min(g2)) < y(i) and that in all other cases fm is not y(i) is 0. and the derivative The method outlined above can also be used to differentiate a min-max based interpolation equation formulated using the absolute error. The following formula will be useful for the first stage of this differentiation: The minimum of the error equation is to be found when the differential is zero. Examination of a typical differential shows that it is possible to have more than one minimum. Some occur when one or more of the unit step functions equal zero. By differentiating again these can often be shown to correspond to points of inflexion. However, the equations show that they can also correspond to local minima. This is an important consideration when choosing the optimisation strategy. (6) 4. OPTIMISATION STRATEGY Minimising an error equation based on a min-max function requires much care. Gradient information can help greatly to find the route to the minimum, but sometimes local minima occur, so the strategy chosen must reflect this. The search for the minimum is normally performed using simulated annealing (described below). This technique is used to avoid converging to a local minimum. Conjugate gradient methods (described below) are used to find the minimum when it is thought that local minima will not be encountered. These methods use gradient information and sre more efficient than simulated annealing. In the results presented next, only the reconstruction of the hair texture of the mandrill exhibited local minima and required simulated annealing. The smoother areas were interpolated using conjugate gradient methods - as a check they were compared to results using simulated annealing, which took longer to obtain, Each method was implemented using the algorithms supplied with the book, Numerical Recipes in C [5]. When using conjugate gradient methods the derivatives must be used during the line minimisation and it is necessary to add a check on the derivative in order to ensure that the method does not stop at points of inflexion. If it is found that a derivative that is equal to zero corresponds to a point of inflexion, the derivative is set to the value of the derivative below this point. The simulated annealing algorithm is based around an algorithm that transforms t.he points of a simplex so as to search for the route that minimises the error. In order to avoid local minima the points are randomly fluctuated each time they are observed and new points are accepted if they lead to an error that is less tha.n a sum of the previous error and a positive random fluctuation. The amount of fluctuation is controlled by a parameter known, in analogy to physical processes, as the temperature. At each temperature the number of iterations performed is equal to 50 times the number of missing pixels. The temperature is reduced by 20% at a time, from an initial value equal to twice the maximum error encountered for all the points in the initial simplex, until the temperature is less than 0.5. At this point the temperature is reduced to 0 and the minimisation continued using conjugate gradient methods. These methods are very computationally expensive, especially when compared to the closed form solution of a system of linear AR based interpolation equations. 5. RESULTS: SQUARED ERROR Figure 1 shows interpolation results for three edge features in an image called regions. The areas interpolated are shown as bright squares in the first of these images. Conjugate gradient methods were used to minimise the min-max interpolation equation and the predictor used was a seven by seven median predictor, with the top left-hand position missed out to give an odd number of positions in the support. The position of the predicted pixel was located at the centre of the support. Around 25 iterations were required in each case until all the gradients became zero

(b) Fig ure 1: (a) Locations of missing data. (b) Detail of image reconstructed using min-max based interpolation. (c) Det #ai1 of image reconstructed using AR based interpolation. Figure 3: Detail of image reconst,ructed using min-max based interpolation. Figure 2: Locations of missing data. (Some blocks have been placed over edge features.) Figure 4: Detail of image reconstructed interpolation. using AR based

Figure 5: Absolute difference between image reconstructed using min-max based interpolation and the original image (scaled by a factor of 2). or very small, except for the corner feature which required 40. The initial values were chosen randomly from a uniform distribution between 0 and 255. In the case of the.4r interpolation the same predictor support was used except that the top left-hand position was not missed out. Note that for the AR interpolation, which involves matrix inversion, a small amount of noise was added to the image to avoid ill-conditioned matrices. These figures illustrate that the min-max based interpolator interpolates edge features very well, but both methods have problems with the corner feature. It also shows that the AR interpolation sometimes has problems with edges. Although the coefficients were chosen to ensure that the vertical and horizontal edges were well reconstructed, this was not possible for the diagonal edge and the result is a smudge. Figure 2 shows a detail of the image mandrill with areas of missing data, 6 by 6 pixels in size, and figure 3 shows the image reconstructed using min-max based interpolation. Simulated annealing was used to minimise the interpolation equation. The predictor used is a seven by seven median predictor, with the top left-hand position missed out to give an odd number of positions in the support. The position of the predicted pixel is located at the centre of the support. Figure 4 shows the image reconstructed using AR based interpolation. The same predictor support was used (except that the top left-hand position was not missed out). Figures 5 and 6 are difference images showing the absolute difference between the reconstructed images and the original images. The mean absolute errors over the reconstructed areas are 19.66 for the min-max based interpolation and 24.02 for the AR based interpolation. In general the interpolated regions for both methods appear to fit in well with the rest of the image. It appears from the difference image that the min-max based interpolations fit in better - however the extra activity shown in the difference image of the AR interpolation in the blocks corresponding to the hair texture actually highlights the better reconstructions. It, is perhaps surprising that an interpolation scheme based on a median predictor can reconstruct the hair texture so well, though at times it looks a little flatter than the AR result. The AR interpolation has reconstructed the hair texture well, but has not performed as well as the min-max interpolation in the block on the left of the eye and the block over the diagonal strip on the flat region to the left of the nose. 6. RESULTS: ABSOLUTE ERROR Using the absolute error for min-max based interpolation does not necessarily produce one optimal interpolant. For example, using the predictor y(n) = median(y(n-1), y(n- 2), y(n - 3)) with the step sequence Figure 6: -4bsolute difference between image reconstructed using AR based interpolation and the original image (scaled by a factor of 2). o,o, 0, *, 100,100,100 where * indicates a missing pixel, the optimal interpolant is found to be any value between 0 and 100. However, note that appropriate values for the interpolant are the values at the extremes, namely 0 or 100.

With two missing pixels in the sequence o,o, 0, *, *, 100,100,100 the minimum of the error surface is a triangular plateau. The vertices of the triangle are (0, 0), (0,100) and (100,100). All these values are appropriate interpolants of the missing pixels. For more complex cases, such as with images, one global minima does often occur. In csses where it does not the sum squared gradient around the interpolated region is employed to determine a unique interpolant. The implementation involves starting an optimisation routine at the ambiguous result, but employing this different error criterion to explore the plateau. The search is not allowed to increase the absolute error. Regions of constant error can also occur in the error space at locations that are not at the minimum of the function. Simulated annealing was used to obtain the results obtained in this section, but if conjugate gradient methods are used then this needs to be taken into account. Figure 7 shows the regions image from the previous section. Once again it is interpolated using the same 7 by 7 median predictor as in the previous section, but this time the interpolation is based on the absolute error. In every case except the corner, multiple solutions were found and the most appropriate was determined according to the method described above. Figure 7: Regions image reconstructed using min-max based interpolation and the absolute error. In the case of the corner the method has very neatly cut the corner off. This illustrates that the use of the absolute error can lead to interpolations that are less smudged. 7. CONCLUSION This paper has shown how to construct a non-linear interpolator based on min-max functions and how to calculate the derivative of a given min-max based error equation. The derivatives show that the minimisation of the error equation is a complicated problem, but one which can be solved using a combination of simulated annealing and conjugate gradient methods. The results presented for the squared error case show that the min-max based interpolator gives a pleasing reconstruction that performs well for different image features. Results for standard applications of min-max filters or recursive min-max prediction were not shown as it is clear that they cannot perform as well for this problem. The results for min-max based interpolation were similar to those obtained using AR. based interpolation, though this had the advantage of being able to optimise its coefficients. The main differences are that sometimes (though not always) the hair texture on the mandrill is worse when reconstructed with min-max based interpolation, but edge features are reconstructed better. Min-max based interpolation using the absolute error criterion involves a few more considerations because there are regions of equal error in the error space. The paper has proposed solutions to the problems that this gives and shows that the use of the absolute error can lead to less smudging of reconstructed edge features. The huge amount of computation is an important factor that limits the usefulness of min-msx based interpolation, especially as AR based interpolation yields an efficient closed form solution. (More information can be found along with examples of reconstructed images, on the main author s webpaqe: PI PI 131 Anil C. Kokaram, Robin D. Morris, William J. Fitzgerald, and Peter J.W. Rayner. Interpolation of missing data in image sequences. IEEE Transactions on Image Processing, 4(11):1509-1519, November 1995. 141 Jean-Hsang Lin, Thomas M. Selke, and Edward J. Coyle. Adaptive stack filtering under the mean absolute error criterion. IEEE Transactions on Acoustics, Speech and Signal Processing, 38(6):938-954, June 1990. [51 William H. Press, Saul William T. Vetterling, and Brian P. Flannery. Numerical Recipes in C: The Art of Scientific Programming. Cambridge University Press, 1992. [61 8. REFERENCES Simon J. Godsill and Anil C. Kokaram. Joint interpolation, motion & parameter estimation for image sequences with missing data. In Procedures of the Eighth European Signal and Image Processing Conference (EU- SIPCO), volume I, pages l-4, September 1996. Anil C. Kokaram, Robin D. Morris, William J. Fitzgerald, and Peter J.W. Rayner. Detection of missing data in image sequences. IEEE Transactions on Image Processing, 4(11):1496-1508, November 1995. Ioan Tiibus, Doina Petrescu, and Moncef Gabbouj. A training framework for stack and boolean filtering - fast optimal design procedures and robustness case study. IEEE i%ansactions on Image Processing, 5(6):809-826, June 1996. [71 Bing Zeng, Moncef Gabbouj, and Yrjij A. Neuvo. A unified method for rank order, stack and generalized stack filters based on classical bayes decision. IEEE Zhnsactions on Circuits and Systems, 38(9):1003-1020, September 1991.