
OPTIMISING DIFFERENT FEATURE TYPES
FOR INPAINTING-BASED IMAGE REPRESENTATIONS
Ferdinand Jost Vassillen Chizhov Joachim Weickert ∗
Mathematical Image Analysis Group, Faculty of Mathematics and Computer Science
Campus E1.7, Saarland University, 66041 Saarbr¨
ucken, Germany
{jost, chizhov, weickert}@mia.uni-saarland.de
ABSTRACT
Inpainting-based image compression is a promising alternative to
classical transform-based lossy codecs. Typically it stores a care-
fully selected subset of all pixel locations and their colour values. In
the decoding phase the missing information is reconstructed by an
inpainting process such as homogeneous diffusion inpainting. Opti-
mising the stored data is the key for achieving good performance. A
few heuristic approaches also advocate alternative feature types such
as derivative data and construct dedicated inpainting concepts. How-
ever, one still lacks a general approach that allows to optimise and
inpaint the data simultaneously w.r.t. a collection of different feature
types, their locations, and their values. Our paper closes this gap.
We introduce a generalised inpainting process that can handle arbi-
trary features which can be expressed as linear equality constraints.
This includes e.g. colour values and derivatives of any order. We
propose a fully automatic algorithm that aims at finding the optimal
features from a given collection as well as their locations and their
function values within a specified total feature density. Its perfor-
mance is demonstrated with a novel set of features that also includes
local averages. Our experiments show that it clearly outperforms the
popular inpainting with optimised colour data with the same density.
Index Terms—Inpainting, Constrained Optimisation, Voronoi
Diagram
1. INTRODUCTION
Inpainting is the process of reconstructing an image from a subset of
its data [1]. One of its most challenging applications is lossy image
compression. Inpainting-based codecs [2] typically store a few well
chosen pixel locations of the original image with their greyscale or
colour values. In the decoding phase, the missing image parts are in-
painted from these sparse data, often with a diffusion process. These
methods have been able to outperform even widely used transform-
based codecs such as JPEG and JPEG2000 [3]. Surprisingly, al-
ready the simple linear process such as homogeneous diffusion in-
painting can give good results, if the inpainting data is thoroughly
optimised [4]. This, however, is a highly nontrivial problem.
For achieving better visual quality, it has also been advocated to
replace the greyscale/colour data by gradient data [5, 6]. However,
these papers had to undertake various specific algorithmic adapta-
tions, and the data optimisation problem becomes even harder. To
further improve the quality, it has been suggested to combine the gra-
dient information with greyscale/colour data [6]. While this sounds
∗This work has received funding from the European Research Council
(ERC) under the European Union’s Horizon 2020 research and innovation
programme (grant agreement no. 741215, ERC Advanced Grant INCOVID).
promising, it has not been done so far. Moreover, it would be desir-
able to have a more general framework that allows a straightforward
incorporation of various classes of features without the need for ded-
icated optimisation algorithms.
1.1. Our Contributions
The goal of our paper is to address these challenges. Our contribu-
tions are threefold:
1. We establish a generalised inpainting framework for linear
inpainting operators that can handle any collection of features
in terms of linear equality constraints. This class is very large
and includes e.g. derivatives of any order.
2. We introduce an efficient data selection strategy. It automati-
cally distributes the available data budget among all different
features and optimises both their locations and their values.
This automates and generalises the otherwise cumbersome
feature-specific selection and optimisation process.
3. We identify a novel collection of features that includes local
averages. Experiments show that it considerably improves the
inpainting quality compared to classical inpainting.
Since our paper focuses on feature integration and data optimisation,
we postpone any coding aspects to future work.
1.2. Related Work
Some inpainting-based codecs involve information at edges [7, 8] or
isolines [9]. However, these approaches still use grey values as their
only feature and just benefit from the fact that contours allow an
inexpensive encoding of their locations.
Extensions of edge-like concepts that combine greyscale data
with the additional feature of discontinuities are presented in [10–
12]. In contrast to our approach they use specific segmentation con-
cepts which do not generalise to other feature classes.
There are various attempts to reconstruct an image from features
such as zero-crossings [13] or toppoints in scale-space [14], as well
as junctions [15], and SIFT features [16]. While these papers give
interesting information-theoretic insights, they do not offer compet-
itive image representations in terms of compression quality.
Typically, an optimal placement of the features is crucial for
the reconstruction quality. There has been a lot of work on spa-
tial optimisation in the context of image inpainting, including ana-
lytic approaches [17], non-smooth optimisation [18–20], neural net-
works [21], probabilistic sparsification [4], and densification algo-
rithms [22, 23]. By combining the ideas of error maps [22] and
Voronoi densification [23], our approach falls into the latter class,
but is the first one to generalise it to large collections of feature types.
Published in Proc. ICASSP2023, June 04-10, 2023, Rhodes Island, Greece © IEEE 2023
arXiv:2210.14949v3 [eess.IV] 14 May 2023