Inpainting
   HOME

TheInfoList



OR:

Inpainting is a
conservation Conservation is the preservation or efficient use of resources, or the conservation of various quantities under physical laws. Conservation may also refer to: Environment and natural resources * Nature conservation, the protection and manageme ...
process where damaged, deteriorated, or missing parts of an artwork are filled in to present a complete image. This process is commonly used in image restoration. It can be applied to both physical and digital art mediums such as
oil An oil is any nonpolar chemical substance that is composed primarily of hydrocarbons and is hydrophobic (does not mix with water) & lipophilic (mixes with other oils). Oils are usually flammable and surface active. Most oils are unsaturated ...
or
acrylic Acrylic may refer to: Chemicals and materials * Acrylic acid, the simplest acrylic compound * Acrylate polymer, a group of polymers (plastics) noted for transparency and elasticity * Acrylic resin, a group of related thermoplastic or thermosett ...
paintings, chemical photographic prints,
sculpture Sculpture is the branch of the visual arts that operates in three dimensions. Sculpture is the three-dimensional art work which is physically presented in the dimensions of height, width and depth. It is one of the plastic arts. Durable ...
s, or digital
images An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensiona ...
and
video Video is an electronic medium for the recording, copying, playback, broadcasting, and display of moving visual media. Video was first developed for mechanical television systems, which were quickly replaced by cathode-ray tube (CRT) sy ...
. With its roots in physical artwork, such as painting and sculpture, traditional inpainting is performed by a trained art conservator who has carefully studied the artwork to determine the mediums and techniques used in the piece, potential risks of treatments, and ethical appropriateness of treatment.


History

The modern use of inpainting can be traced back to Pietro Edwards (1744–1821), Director of the Restoration of the Public Pictures in
Venice Venice ( ; it, Venezia ; vec, Venesia or ) is a city in northeastern Italy and the capital of the Veneto Regions of Italy, region. It is built on a group of 118 small islands that are separated by canals and linked by over 400  ...
,
Italy Italy ( it, Italia ), officially the Italian Republic, ) or the Republic of Italy, is a country in Southern Europe. It is located in the middle of the Mediterranean Sea, and its territory largely coincides with the homonymous geographical ...
. Using a scientific approach, Edwards focused his restoration efforts on the intentions of the artist. It was during the 1930 International Conference for the Study of Scientific Methods for the Examination and Preservation of Works of Art, that the modern approach to inpainting was established.
Helmut Ruhemann Helmut Ruhemann CBE, (b. 1891 – d. 1973) was a German painting conservator and restorer, considered the pre-eminent of his profession during his lifetime. Early life and education He was born in Berlin and studied at Karlsruhe, Munich and Par ...
(1891–1973), a German restorer and conservator, led the discussions on the use of inpainting in conservation. Helmut Ruhemann was a leading figure in modernizing restoration and conservation. His greatest contribution to the field of conservation "was his insistence on following the methods of the original painter exactly, and on understanding the painter's artistic intention". After his career of over 40 years as a conservator, Ruhemann published his treatise ''The Cleaning of Paintings: Problems & Potentialities'' in 1968. In describing his method, Ruhemann states that "The surface
f the fill F, or f, is the sixth letter in the Latin alphabet, used in the modern English alphabet, the alphabets of other western European languages and others worldwide. Its name in English is ''ef'' (pronounced ), and the plural is ''efs''. His ...
should be slightly lower than that of the surrounding paint to allow for the thickness of the inpainting...Inpainting medium should look and behave like the original medium, but must not darken with age."
Cesare Brandi Cesare Brandi (Siena, 8 April 1906 – Vignano, 19 January 1988) was an art critic and historian, specialist in conservation-restoration theory. In 1939 he became the first director of the ''Istituto Centrale per il Restauro'' (Central Institute ...
(1906–1988) developed the ''teoria del restauro'', the inpainting approach combining aesthetics and psychology. However, this approach was used primarily by Italian restorers and conservators, with the terminology becoming widespread in the 1990s. Technological advancements led to new applications of inpainting. Widespread use of digital techniques range from entirely automatic computerized inpainting to tools used to simulate the process manually. Since the mid-1990s, the process of inpainting has evolved to include
digital media Digital media is any communication media that operate in conjunction with various encoded machine-readable data formats. Digital media can be created, viewed, distributed, modified, listened to, and preserved on a digital electronics device. ...
. More commonly known as image or video interpolation, a form of estimation, digital inpainting includes the use of
computer software Software is a set of computer programs and associated documentation and data. This is in contrast to hardware, from which the system is built and which actually performs the work. At the lowest programming level, executable code consist ...
that relies on sophisticated
algorithms In mathematics and computer science, an algorithm () is a finite sequence of rigorous instructions, typically used to solve a class of specific problems or to perform a computation. Algorithms are used as specifications for performing ...
to replace lost or corrupted parts of the image data.


Ethics

In order to preserve the integrity of an original artwork, any inpainting technique or treatment applied to physical or digital work should be reversible or distinguishable from the original content of the artwork. Prior to any treatments, conservators proceed according to the American Institute of Conservation of Historical and Artistic Works. There are several ethic considerations before Inpainting can be justified. Various deliberation decisions over the ethical appropriateness of the amount and type of inpainting done, resides on many factors. As most conservation treatments, inpainting's ethical questions rest mainly with authenticity, reversibility and
documentation Documentation is any communicable material that is used to describe, explain or instruct regarding some attributes of an object, system or procedure, such as its parts, assembly, installation, maintenance and use. As a form of knowledge manageme ...
. "Any intervention to compensate for loss should be documented in treatment records and reports and should be detectable by common examination methods. Such compensation should be reversible and should not falsely modify the known aesthetic, conceptual, and physical characteristics of the cultural property, especially by removing or obscuring original material." In an age of museum tourism, new technologies and aesthetic demand for perfect images without imperfections, continue to challenge conservators' ethical practices to protect the integrity of originals.


Methods

Inpainting method techniques depend on the desired goal and type of image being treated. Treatments to fill in the gaps are very different between physical and digital art. With all applications of inpainting, it is important to keep detailed records of the initial state of the images, treatments done and justification for treatment, and the original copies when applicable (e.g. original digital images).


Physical Inpainting

Inpainting is rooted in the restoration of painted images. In the conservation and restoration of paintings, "the term inpainting refers to the compensation of paint losses—aiming at the recomposition of the missing parts of an image in order to improve its perception by making damages less visible". In other words, inpainting aims to make a visual improvement to the artwork as a whole by repairing missing or damaged parts using methods and materials equivalent to the original artist's work.


Application Techniques

By studying the painting methods of various artists, the composition of paints used historically, and taking the time to carefully study the medium one is working with, conservators are able to, using an array of methodology, restore works very closely to their original visual appearance. Other tips of inpainting: * The picture as a whole determines how to fill in the gap; the purpose of inpainting is to restore the unity of the work so it is crucial to know how the repaired piece will function within the rest of the image. * The structure of the area surrounding the gap ought to be continued into the gap. Contour lines that end at the gap boundary are to be carried on into the gap. * The different regions inside a gap, as defined by the contour lines, are filled with colors matching those of its boundary although the specific materials do not have to be identical. If alternate materials are to be used, it is important to test for potential reactivity. * The small details are painted, i.e. "texture" is added to ensure the eye will not be drawn first to the in-painted region. Helmut Ruhemann's Inpainting Techniques by Jessell is filled with technique choices and procedures to "preserve" the quality of Oil and early Tempera paintings.


Digital inpainting

Many programs are able to reconstruct missing or damaged areas of digital photographs and videos. Most widely known for use with digital images is
Adobe Photoshop Adobe Photoshop is a raster graphics editor developed and published by Adobe Inc. for Windows and macOS. It was originally created in 1988 by Thomas and John Knoll. Since then, the software has become the industry standard not only in rast ...
. Since the digital files are able to be duplicated, any restorative alterations should be made to the duplicate file, while maintaining the original files in an archive. Given the various abilities of the digital camera and the digitization of old photos, inpainting has become an automatic process that can be performed on digital images. More than mere scratch removal, the inpainting techniques can also be applied to object removal, text removal, and other automatic modifications of images and videos. In video special effects inpainting is usually performed after video matting. Furthermore, they can also be observed in applications like
image compression Image compression is a type of data compression applied to digital images, to reduce their cost for storage or transmission. Algorithms may take advantage of visual perception and the statistical properties of image data to provide superior re ...
and super resolution. In
photography Photography is the art, application, and practice of creating durable images by recording light, either electronically by means of an image sensor, or chemically by means of a light-sensitive material such as photographic film. It is emplo ...
and
cinema Cinema may refer to: Film * Cinematography, the art of motion-picture photography * Film or movie, a series of still images that create the illusion of a moving image ** Film industry, the technological and commercial institutions of filmmaking ...
, it is used for
film restoration Film preservation, or film restoration, describes a series of ongoing efforts among film historians, archivists, museums, cinematheques, and non-profit organizations to rescue decaying film stock and preserve the images they contain. In the w ...
to reverse, repair, or mitigate deterioration (e.g. physical damage such as cracks in photographs or scratches and dust spots in film or chemical damage resulting in image loss; see
infrared cleaning Infrared cleaning is a technique used by some film scanners and flatbed scanners to reduce or remove the effect of dust and scratches upon the finished scan. It works by collecting an additional infrared channel from the scan at the same position ...
). It can also be used for removing red-eye, the stamped date from photographs, and removing objects for creative effect. This technique can be used to replace any lost blocks in the coding and transmission of images, for example, in a
streaming video Video on demand (VOD) is a media distribution system that allows users to access videos without a traditional video playback device and the constraints of a typical static broadcasting schedule. In the 20th century, broadcasting in the form of ...
. It can also be used to remove logos in videos.
Deep learning Deep learning (also known as deep structured learning) is part of a broader family of machine learning methods based on artificial neural networks with representation learning. Learning can be supervised, semi-supervised or unsupervised. ...
neural network A neural network is a network or circuit of biological neurons, or, in a modern sense, an artificial neural network, composed of artificial neurons or nodes. Thus, a neural network is either a biological neural network, made up of biological ...
based inpainting can be used for decensoring images. Three main groups of 2D image inpainting algorithms can be found in literature. The first one to be noted is structural (or geometric) inpainting, the second one is texture inpainting, and the last one is a combination of these two techniques. All these inpainting methods have one thing in common: they use the information of the known or non-destroyed image areas in order to fill the gap, similar to how physical images are restored.


Structural

Structural or geometric inpainting is used for smooth images that have strong, defined borders.Bugeau, Aurelie & Marcelo Bertalmio(2011).''Combining Texture Synthesis and Diffusion for Image Inpainting.''Hal Archives https://hal.archives-ouvertes.fr/hal-00551587/ Retrieved November 1 2019. There are many different approaches to geometric inpainting, but they all stem from the same idea that geometry can be recovered from similar areas or domains. Bertalmio proposed a method of structural inpainting that mimics how conservators address painting restoration. Bertalmio proposed that by progressively transferring similar information from the borders of an inpainting domain inwards, the gap can be filled.


Textural

While structural/geometric inpainting works to repair smooth images, textural inpainting works best with images that are heavily textured. Texture has a repetitive pattern which means that a missing portion cannot be restored by continuing the level lines into the gap; level lines provide a complete, stable representation of an image. To repair texture in an image, one can combine frequency and spatial domain information to fill in a selected area with a desired texture. This method, while the most simple and very effective, works well when selecting a texture to be in-painted. For a texture that covers a wider area or a larger frame one would have to go through the image segmenting the areas to be in-painted and selecting the corresponding textures from throughout the image; there are programs that can help find the corresponding areas that work in a similar way as 'find and replace' works in a word processor.


Combined structural and textural

Combined structural and textural inpainting approaches simultaneously try to perform texture- and structure-filling in regions of missing image information. Most parts of an image consist of texture and structure and the boundaries between image regions contain a large amount of structural information. This is the result when blending different textures together. That is why state of the art methods attempt to combine structural and textural inpainting. A more traditional method is to use
differential equation In mathematics, a differential equation is an equation that relates one or more unknown functions and their derivatives. In applications, the functions generally represent physical quantities, the derivatives represent their rates of change, ...
s (such as the
Laplace's equation In mathematics and physics, Laplace's equation is a second-order partial differential equation named after Pierre-Simon Laplace, who first studied its properties. This is often written as \nabla^2\! f = 0 or \Delta f = 0, where \Delta = \na ...
) with
Dirichlet boundary conditions In the mathematical study of differential equations, the Dirichlet (or first-type) boundary condition is a type of boundary condition, named after Peter Gustav Lejeune Dirichlet (1805–1859). When imposed on an ordinary or a partial differenti ...
for continuity so as to create a seemingly seamless fit. This works well if missing information lies within the homogeneous portion of an object area. Other methods follow
isophote In geometry, an isophote is a curve on an illuminated surface that connects points of equal brightness. One supposes that the illumination is done by parallel light and the brightness is measured by the following scalar product: :b(P)= \vec n(P) ...
directions (in an image, a contour of equal luminance), to do the inpainting. Recent investigations included the exploration of the wavelet transform properties to perform inpainting in the space-frequency domain, obtaining a better performance when compared to the frequency-based inpainting techniques. Model based inpainting follows the Bayesian approach for which missing information is best fitted or estimated from the combination of the models of the underlying images, as well as the image data actually being observed. In deterministic language, this has led to various variational inpainting models. Manual computer methods include using a
clone tool The clone tool, as it is known in Adobe Photoshop, Inkscape, GIMP, and Corel PhotoPaint, is used in digital image editing to replace information for one part of a picture with information from another part. In other image editing software, its ...
to copy existing parts of the image to restore a damaged texture. Texture synthesis may also be used. Exemplar-based image inpainting attempts to automate the clone tool process. It fills "holes" in the image by searching for similar patches in a nearby source region of the image, and copying the pixels from the most similar patch into the hole. By performing the fill at the patch level as opposed to the pixel level, the algorithm reduces blurring artifacts caused by prior techniques.


See also

*
Infrared cleaning Infrared cleaning is a technique used by some film scanners and flatbed scanners to reduce or remove the effect of dust and scratches upon the finished scan. It works by collecting an additional infrared channel from the scan at the same position ...
*
Noise reduction Noise reduction is the process of removing noise from a signal. Noise reduction techniques exist for audio and images. Noise reduction algorithms may distort the signal to some degree. Noise rejection is the ability of a circuit to isolate an u ...
*
Seam carving Seam carving (or liquid rescaling) is an algorithm for content-aware image resizing, developed by Shai Avidan, of Mitsubishi Electric Research Laboratories (MERL), and Ariel Shamir, of the Interdisciplinary Center and MERL. It functions by es ...
*
Image reconstruction Iterative reconstruction refers to iterative algorithms used to reconstruct 2D and 3D images in certain imaging techniques. For example, in computed tomography an image must be reconstructed from projections of an object. Here, iterative recon ...
*
Photo restoration Digital photograph restoration is the practice of restoring the appearance of a digital copy of a physical photograph which has been damaged by natural, man-made, or environmental causes or simply affected by age or neglect. Digital photograph r ...
*
Media preservation Preservation of documents, pictures, recordings, digital content, etc., is a major aspect of archival science. It is also an important consideration for people who are creating time capsules, family history, historical documents, scrapbooks and fam ...
* Conservation and restoration of photographs * Conservation and restoration of photographic plates *
Helmut Ruhemann Helmut Ruhemann CBE, (b. 1891 – d. 1973) was a German painting conservator and restorer, considered the pre-eminent of his profession during his lifetime. Early life and education He was born in Berlin and studied at Karlsruhe, Munich and Par ...
* Conservation and restoration of paintings * Conservation and restoration of metals *
Conservation and restoration of parchment The conservation and restoration of parchment constitutes the care and treatment of parchment materials which have cultural and historical significance. Typically undertaken by professional book and document conservators, this process can include ...
* Conservation and restoration of cultural heritage


References

Bugeau Aurelie & Bertalmio, Marcelo (2011) "Combining Texture Synthesis and Diffusion for Image Inpainting." Hal Archives. https://hal.archives-ouvertes.fr/hal-00551587/


External links


Interactive Point-and-Click Segmentation for Object Removal in Digital Images
ICCV-HCI 2005

by
Guillermo Sapiro Guillermo Sapiro (born 1966) is an Israeli-Uruguayan computer scientist, electrical engineer and professor who has made notable contributions to image processing. He worked at The University of Minnesota for 15 years before becoming a professor a ...
*Mathematic
Inpaint
function.
Inpainting of images on meshes or point clouds
TIP 2014
Image Completion using Planar Structure Guidance
SIGGRAPH 2014 {{Cultural Conservation-Restoration , state=expanded Conservation and restoration of cultural heritage Image processing