Abstract
We propose diffusion–shock (DS) inpainting as a hitherto unexplored integrodifferential equation for filling in missing structures in images. It combines two carefully chosen components that have proven their usefulness in different applications: homogeneous diffusion inpainting and coherence-enhancing shock filtering. DS inpainting enjoys the complementary synergy of its building blocks: It offers a high degree of anisotropy along an eigendirection of the structure tensor. This enables it to connect interrupted structures over large distances. Moreover, it benefits from the sharp edge structure generated by the shock filter, and it exploits the efficient filling-in effect of homogeneous diffusion. The second order equation that underlies DS inpainting inherits a continuous maximum–minimum principle from its constituents. In contrast to other attractive second order inpainting equations such as edge-enhancing anisotropic diffusion, we can guarantee this property also for the proposed discrete algorithm. Our experiments show a performance that is comparable to or better than many linear or nonlinear, isotropic or anisotropic processes of second or fourth order. They include homogeneous diffusion, biharmonic interpolation, TV inpainting, edge-enhancing anisotropic diffusion, the methods of Tschumperlé and of Bornemann and März, Cahn–Hilliard inpainting, and Euler’s elastica.
This project 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).
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Alvarez, L., Mazorra, L.: Signal and image restoration using shock filters and anisotropic diffusion. SIAM J. Numer. Anal. 31, 590–605 (1994)
Bertozzi, A.L., Esedoglu, S., Gillette, A.: Inpainting of binary images using the Cahn-Hilliard equation. IEEE Trans. Image Process. 16(1), 285–291 (2007)
Bornemann, F., März, T.: Fast image inpainting based on coherence transport. J. Math. Imaging Vis. 28(3), 259–278 (2007)
Brockett, R.W., Maragos, P.: Evolution equations for continuous-scale morphology. In: Proceedings of IEEE International Conference on Acoustics, Speech and Signal Processing, San Francisco, CA, vol. 3, pp. 125–128 (1992)
Burger, M., He, L., Schönlieb, C.: Inpainting of binary images using the Cahn-Hilliard equation. SIAM J. Imag. Sci. 2, 1129–11671 (2009)
Carlsson, S.: Sketch based coding of grey level images. Signal Process. 15, 57–83 (1988)
Charbonnier, P., Blanc-Féraud, L., Aubert, G., Barlaud, M.: Deterministic edge-preserving regularization in computed imaging. IEEE Trans. Image Process. 6(2), 298–311 (1997)
Duchon, J.: Interpolation des fonctions de deux variables suivant le principe de la flexion des plaques minces. RAIRO Analyse Numérique 10, 5–12 (1976)
Duda, R.O., Hart, P.E.: Pattern Classification and Scene Analysis. Wiley, New York (1973)
Efros, A.A., Leung, T.: Texture synthesis by non-parametric sampling. In: Proceedings of Seventh International Conference on Computer Vision, Kerkyra, Greece, vol. 2, pp. 1033–1038. IEEE Computer Society Press (1999)
Förstner, W., Gülch, E.: A fast operator for detection and precise location of distinct points, corners and centres of circular features. In: Proceedings ISPRS Intercommission Conference on Fast Processing of Photogrammetric Data, Interlaken, Switzerland, pp. 281–305 (1987)
Iijima, T.: Basic theory on normalization of pattern (in case of typical one-dimensional pattern). Bull. Electrotech. Lab. 26, 368–388 (1962). (in Japanese)
Kämper, N., Weickert, J.: Domain decomposition algorithms for real-time homogeneous diffusion inpainting in 4K. In: Proceedings of 2022 IEEE International Conference on Acoustics, Speech and Signal Processing, Singapore, pp. 1680–1684 (2022)
Kang, S., Tai, X.C., Zhu, W.: Survey of fast algorithms for Euler’s elastica-based image segmentation. In: Kimmel, R., Tai, X.C. (eds.) Processing, Analyzing and Learning of Images, Shapes, and Forms: Part 2, Handbook of Numerical Analysis, vol. 20, pp. 533–552. Elsevier (2019)
Kornprobst, P., Deriche, R., Aubert, G.: Image coupling, restoration and enhancement via PDEs. In: Proceedings of 1997 IEEE International Conference on Image Processing, Washington, DC, vol. 4, pp. 458–461 (1997)
Kramer, H.P., Bruckner, J.B.: Iterations of a non-linear transformation for enhancement of digital images. Pattern Recogn. 7, 53–58 (1975)
Mainberger, M., et al.: Optimising spatial and tonal data for homogeneous diffusion inpainting. In: Bruckstein, A.M., ter Haar Romeny, B.M., Bronstein, A.M., Bronstein, M.M. (eds.) SSVM 2011. LNCS, vol. 6667, pp. 26–37. Springer, Heidelberg (2012). https://doi.org/10.1007/978-3-642-24785-9_3
Masnou, S., Morel, J.M.: Level lines based disocclusion. In: Proceedings of 1998 IEEE International Conference on Image Processing, Chicago, IL, vol. 3, pp. 259–263 (1998)
Mumford, D.: Elastica and computer vision. In: Bajaj, C.L. (ed.) Algebraic Geometry and its Applications, vol. 5681, pp. 491–506. Springer, New York (1994). https://doi.org/10.1007/978-1-4612-2628-4_31
Novak, A., Reinić, N.: Shock filter as the classifier for image inpainting problem using the Cahn–Hilliard equation. Comput. Math. Appl. 123, 105–114 (2022)
Osher, S., Rudin, L.I.: Feature-oriented image enhancement using shock filters. SIAM J. Numer. Anal. 27, 919–940 (1990)
Perona, P., Malik, J.: Scale space and edge detection using anisotropic diffusion. IEEE Trans. Pattern Anal. Mach. Intell. 12, 629–639 (1990)
Rouy, E., Tourin, A.: A viscosity solutions approach to shape-from-shading. SIAM J. Numer. Anal. 29(3), 867–884 (1992)
Schmaltz, C., Peter, P., Mainberger, M., Ebel, F., Weickert, J., Bruhn, A.: Understanding, optimising, and extending data compression with anisotropic diffusion. Int. J. Comput. Vision 108(3), 222–240 (2014)
Schrader, K., Alt, T., Weickert, J., Ertel, M.: CNN-based Euler’s elastica inpainting with deep energy and deep image prior. In: 10th European Workshop on Visual Information Processing (EUVIP), Lisbon (2022)
Shen, J., Chan, T.F.: Mathematical models for local non-texture inpaintings. SIAM J. Numer. Anal. 62(3), 1019–1043 (2002)
Soille, P.: Morphological Image Analysis, 2nd edn. Springer, Berlin (2004). https://doi.org/10.1007/978-3-662-05088-0
Tschumperlé, D.: Fast anisotropic smoothing of multi-valued images using curvature-preserving PDE’s. Int. J. Comput. Vision 68(1), 65–82 (2006)
van den Boomgaard, R.: Decomposition of the Kuwahara-Nagao operator in terms of linear smoothing and morphological sharpening. In: Talbot, H., Beare, R. (eds.) Mathematical Morphology: Proceedings of Sixth International Symposium, Sydney, Australia, pp. 283–292. CSIRO Publishing (2002)
Weickert, J.: Coherence-enhancing shock filters. In: Michaelis, B., Krell, G. (eds.) DAGM 2003. LNCS, vol. 2781, pp. 1–8. Springer, Heidelberg (2003). https://doi.org/10.1007/978-3-540-45243-0_1
Weickert, J.: Mathematische Bildverarbeitung mit Ideen aus der Natur. Mitteilungen der DMV 20, 80–92 (2012)
Weickert, J., Welk, M.: Tensor field interpolation with PDEs. In: Weickert, J., Hagen, H. (eds.) Visualization and Processing of Tensor Fields, pp. 315–325. Springer, Heidelberg (2006). https://doi.org/10.1007/3-540-31272-2_19
Welk, M., Weickert, J.: PDE evolutions for M-smoothers in one, two, and three dimensions. J. Math. Imaging Vis. 63, 157–185 (2021)
Welk, M., Weickert, J., Galić, I.: Theoretical foundations for spatially discrete 1-D shock filtering. Image Vis. Comput. 25(4), 455–463 (2007)
Acknowledgements
We thank Karl Schrader for providing us with the images and results from his publication [25].
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Schaefer, K., Weickert, J. (2023). Diffusion–Shock Inpainting. In: Calatroni, L., Donatelli, M., Morigi, S., Prato, M., Santacesaria, M. (eds) Scale Space and Variational Methods in Computer Vision. SSVM 2023. Lecture Notes in Computer Science, vol 14009. Springer, Cham. https://doi.org/10.1007/978-3-031-31975-4_45
Download citation
DOI: https://doi.org/10.1007/978-3-031-31975-4_45
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-031-31974-7
Online ISBN: 978-3-031-31975-4
eBook Packages: Computer ScienceComputer Science (R0)