Equations are not being displayed properly on some articles. We hope to have this fixed soon. Our apologies.

Sparavigna, A. (2017). GIMP Retinex filter applied to arts:  Gerrit van Honthorst and his Chiaroscuro. PHILICA.COM Article number 928.

ISSN 1751-3030  
Log in  
  1309 Articles and Observations available | Content last updated 18 January, 14:23  
Philica entries accessed 3 570 299 times  

NEWS: The SOAP Project, in collaboration with CERN, are conducting a survey on open-access publishing. Please take a moment to give them your views

Submit an Article or Observation

We aim to suit all browsers, but recommend Firefox particularly:

GIMP Retinex filter applied to arts: Gerrit van Honthorst and his Chiaroscuro

Amelia Carolina Sparavignaunconfirmed user (Department of Applied Science and Technology, Politecnico di Torino)

Published in compu.philica.com

Here we apply the Retinex tool of GIMP software for filtering the digital images of the masterpieces of an artist that used the Chiaroscuro, a strong tonal contrast between light and dark, in his painting technique. In particular, we use the GIMP Retinex for some works of Gerrit van Honthorst, known in Italy as Gherardo delle Notti. The filter allows the vision of significant details in the shadows of the images.

Article body


GIMP Retinex filter applied to arts:  Gerrit van Honthorst and his Chiaroscuro


Amelia Carolina Sparavigna

Politecnico di Torino


Abstract: Here we apply the Retinex tool of GIMP software for filtering the digital images of the masterpieces of an artist that used the Chiaroscuro, a strong tonal contrast between light and dark, in his painting technique. In particular, we use the GIMP Retinex for some works of Gerrit van Honthorst, known in Italy as Gherardo delle Notti. The filter allows the vision of significant details in the shadows of the images.

Keywords:  Image processing, Retinex filtering, GIMP, Chiaroscuro, Arts


It is true that only a direct vision makes us appreciate the masterpieces of artists. However, when for several reasons this is impossible to achieve, we can use the resources that the web is giving us through its huge gallery of images, to see and study the works of artists.

Among painters, many used the technique of Chiaroscuro, characterized by a strong tonal contrast between light and dark, and able to give a dramatic effect to the scenes depicted in their works [1]. Great masters of Chiaroscuro are Leonardo da Vinci, Caravaggio, and Rembrandt. In fact, Caravaggio was the crucial artist for a further development of this painting technique. In his works, he used a very pronounced Chiaroscuro, characterized by spotlight effects [2]: it is the Tenebrism technique, which was popular during the Baroque period [3].

Sometimes, the digital images of masterpieces made in a very pronounced Chiaroscuro are not able to give us all the beauty of the original works. Moreover, it is hard to appreciate all the contents that the artist had included in the painting, contents that can have some symbolic intent too. For appreciate the details in the digital images, we can try to filter them by some tools of image processing. Here we show the use of the Retinex filter; the reason for this choice is in the specificity of the Retinex approach.

Retinex filters - among them we have that provided by GIMP, the GNU Image Manipulation Program – had been developed to reproduce the mechanisms of the human vision, according to experimental observations. In fact, experiments are showing that it is easy to find discrepancies between an image recorded by a camera and the directly observed scene. The reason is that humans are able to see details both in the shadows and in the nearby illuminated areas, whereas a photograph of the same scene is showing either the shadows as too dark or the bright areas as overexposed [4]. Actually, the human vision possesses peculiar features concerning colors, brightness and contrast, which are quite different from those of recording devices [5,6]. Retinex filters are therefore used to adjust the digital images to mimic a direct observation of a scene.

The first Retinex algorithms for image processing had been proposed by Edwin H. Land, an American scientist and inventor best known as co-founder of Polaroid Corporation [7-11]. Through the years, Land evolved several models until his last one proposed in 1986 [4]. Even the term “retinex” was coined by Land himself, combining the words “retina” and “cortex”, to indicate that the human vision is involving processes ranging from the retina to the cerebral cortex. Today, different Retinex approaches exist [6,12]: the single-scale Retinex (SSR), the multiscale Retinex (MSR), and, for color images, the MultiScale Retinex with Color Restoration (MSRCR).

Among the MSRCR filters we find the GIMP Retinex, a freely available tool developed by Fabien Pelisson [13]. This tool is easy to use. The resulting image can be adjusted selecting different levels, scales and dynamics. The “levels” are three:  “uniform”, which tends to treat both low and high intensity areas fairly, “low” that “flares up” the lower intensity areas on the image, and “high” that tends to “bury” the lower intensity areas in favor of a better rendering of the clearer areas of the image. The “scale” determines the depth of the Retinex scale. Minimum value is 16, a value providing gross, unrefined filtering. Maximum value is 250. Optimal and default value is 240. A “scale division” determines the number of iterations in the multiscale Retinex filter. The minimum required and recommended value is three. The “dynamic” slider allows to adjust the color saturation contamination around the new average colour (default value is 1,2). In some previous papers, we have proposed the use of GIMP Retinex for several applications and evaluated it by means of the image entropy [14-20].

In the following examples we will filter some Chiaroscuro masterpieces using uniform level, scale 240, scale division five and dynamic slider on 1,2. The artist whose works we use is Gerrit van Honthorst.

Gerrit van Honthorst was a Dutch Golden Age painter, who became especially noted for his depiction of artificially lit scenes. He received the nickname Gherardo delle Notti in Italy [21].  Early in his career he visited Rome, where he had great success painting in a style influenced by Caravaggio. He was much employed by the prince Giustiniani, for whom he painted one of his finest works: St. Peter delivered from prison and Christ before the High Priest. Honthorst visited England, soon after his return from Italy. On leaving England he settled at the Hague, and was taken into the employment of the Prince of Orange [21].

The first proposed example of the use of Retinex is exactly the “St. Peter Being Freed from Prison”, 1616-1618, Berlin State Museums. In the Figure 1, we see the original image on the left (it is that we find in Wikipedia, https://en.wikipedia.org/wiki/Gerard_van_Honthorst on January 18, 2017). On the right, we see the image processed by the GIMP Retinex filter, with the values of the parameters chosen as previously told. In the Figure 2, we see the result we can obtain by combining the original image and the filtered image of the Figure 1.



Figure 1: “St. Peter Being Freed from Prison”. Original image on the left; on the right, the output of the GIMP Retinex filter.




Figure 2: The result of the superposition of the two previous images. Note the chains on the wall behind St. Peter.  


As we can see in the Figure 1, the Retinex filter allows seeing the details in the shadows of the image. In fact, a direct vision of this painting can show them, but the digital reproduction needs an adjustment to mimic the direct vision. In order to have a more natural reproduction, the best seems to be the use of the original image and of the filtered image as two layers  combined into a single image. This is what is shown in the Figure 2. In it, such as in the filtered image, we can see the chains on the wall behind St. Peter. Let us stress that the subject of the painting is the liberation of St. Peter, an event described in the Acts of the Apostles, in which the Saint is rescued from prison by an angel.  “Acts 12:3–19 says that Peter was put into prison by King Herod, but the night before his trial an angel appeared to him, and told him to leave. Peter's chains fell off, and he followed the angel out of prison, thinking it was a vision (verse 9)” [22]. Then, the chains are a significant element in the work painted by Gerritt van Honthorst.

Here some other examples. In the following figures (Figs. 3-6), we see, on the left, the original digital image that we find in Wikipedia and, on the right, the image we obtain combining the original and the filtered image (as in the example shown in the Figure 2).



Figure 3: Adoration of the Child. On the left the Wikipedia image and, on the right, the image we obtain combining it with the output of the Retinex filter. Note the wings of the angels.


The Adoration of the Child is a 1619-1621 oil on canvas. It is in the collection of the Uffizi in Florence. The painting shows Mary laying the Child in white clothes. Joseph is looking over her shoulder and two angels are leaning over the crib. In the image, we see that the Child is the light source, as shown by the faces of the characters. The same happens in the Figure 4.


Figure 4: Adoration of the Shepherds, 1622, Wallraf-Richartz-Museum. On the left the original image and, on the right, the combined image. Note the presence of the animals.



 Figure 5: The Denial of Saint Peter, c. 1620. On the left the Wikipedia image and, on the right, the combined image. Two light sources are present in this work, creating two scenes in the same painting.


 Figure 6: Merry Company, 1623, Staatsgalerie, Schleissheim.




Figure 7: Christ before the High Priest, 1617, National Gallery, London. Note the soldiers in the background. 



 Figure 8: Mocking of Christ.   



Let us conclude showing two other examples, where the artist represented two moments of the passion of Jesus Christ. The first shows Christ before the High Priest (Figure 7), and the second shows the Mocking of Christ (Figure 8).

In this last example, the painter represented Christ mocked by soldiers. One of them is   pushing a crown of thorns on his head; another one has a fork or fire iron that he is pushing into  Jesus’ right hand as a scepter. As told in [23], the Chiaroscuro “illuminates Christ and casts the mockers in shadow; one soldier throws up his hand to hide the light of the flame from his face, bringing Jesus’ words in John 3 to mind”. That is, John 3:19, Light has come into the world, but people loved darkness instead of light because their deeds were evil. [23] continues telling that “the most mesmerizing moment in the painting is the contrast in the behaviors and expressions of the central Roman soldier and Christ”, the soldier whose laughing face is illuminated by the torch.

In the examples we have here proposed, the original images are very good examples of the Chiaroscuro technique, but do not allow the vision of all the characters and details that the artist collected in his work. A Retinex filtered image, combined with the original one, shows us the true scene that the artist had depicted. This helps us in understanding the subject of the work and the symbolism the artist used in it.



[1] Glossary of the National Gallery, https:// www.nationalgallery.org.uk/ paintings/ glossary/chiaroscuro

[2]  Fichner-Rathus, L. (2011). Foundations of Art and Design: An Enhanced Media Edition. Cengage Learning.  ISBN 1-111-77145-6.

[3]  Warwick, G. (2006). Caravaggio: Realism, Rebellion, Reception, University of Delaware Press, 2006

[4]   Barnard, K., & Funt, B. (1999). Investigations into multi-scale Retinex, in Colour Imaging: Vision and Technology, L. MacDonald, Ed. and M. Ronnier Luo. Ed., John Wiley and Sons, pp. 9-17. ISBN: 978-0-471-98531-0

[5]  Zhixi Bian, & Yan Zhang (2002). Retinex image enhancement techniques: Algorithm, application and advantages, EE264 final project report for Image Processing and Reconstruction.

[6]  Jobson, D.J., Rahman, Z., & Woodell, G.A. (1997). A Multi-Scale Retinex for bridging the gap between colour images and the human observation of scenes, IEEE Transactions on Image Processing 6(7):965-976. DOI: 10.1109/83.597272

[7]  Land, E.H. (1986). An alternative technique for the computation of the designator in the retinex theory of color vision, Proc. Nat. Acad, Sci. 83:3078-3080. PMCID: PMC323455

[8]  Land, E.H. (1983). Recent advances in Retinex theory and some implications for cortical computations, Proc. Nat. Acad. Sci. 80:5163-5169. PMCID: PMC384211

[9] Land, E.H. (1986). Recent advances in Retinex theory, Vis. Res. 26:7-21. DOI: 10.1016/0042-6989(86)90067-2

[10]  Land, E.H. (1959). Experiments in color vision, Scientific American, May Issue, 285-298.

[11] Land, E.H. (1959). Color vision and the natural image, Proc. of the National Academy of Sciences 45(1):115–129. PMCID: PMC222521

[12] Jobson, J., Rahman, Z., & Woodell, G.A. (1997). Properties and performance of a center/surround Retinex, Image Processing IEEE Transactions on 6(3):451-462. DOI: 10.1109/83.557356

[13]  Fabien Pelisson, GIMP Retinex,  http://www-prima.inrialpes.fr/pelisson/MSRCR.php

[14] Sparavigna, A. C. (2015). An image processing approach based on Gnu Image Manipulation Program Gimp to the panoramic radiography, International Journal of Sciences 4(5): 57-67. DOI: 10.18483/ijSci.721

[15] Sparavigna, A. C. (2015). Gimp Retinex for enhancing images from microscopes, International Journal of Sciences 4(6):72-79. DOI: 10.18483/ijSci.758

[16]  Sparavigna, A. C., & Marazzato, R. (2015). Effects of GIMP Retinex Filtering Evaluated by the Image Entropy. arXiv preprint arXiv:1512.05653.

[17]  Marazzato, R., & Sparavigna, A. C. (2015). Retinex filtering of foggy images: generation of a bulk set with selection and ranking. arXiv preprint arXiv:1509.08715.

[18]  Sparavigna, A. (2015). Retinex filtering and thresholding of foggy images. PHILICA Article number 511.

[19]  Sparavigna, A. C., & Marazzato, R. (2016). Retinex Filtering for Fabric Fault Detection. PHILICA Article number 640. Available at SSRN: https://ssrn.com/abstract=281316316.

[20]  Sparavigna, A. C., & Marazzato, R. (2016). Evaluation of GIMP Retinex Filtering of Images by Means of the Shen++ Max Shannon Entropy Finder.<hal-01308434>.

[21]  Bryan, M. (1849). Dictionary of Painters and Engravers. London, H. G. Bohn.

[22] Vv. Aa., Wikipedia.  https://en.wikipedia.org/wiki/Liberation_of_Saint_Peter

[23] Amy, Caravaggista (2015). Brief Thoughts on the Passion of Christ through  Honthorst’s Eyes. Available at http://caravaggista.com/2015/04/brief-thoughts-on-the-passion-of-christ-through-honthorsts-eyes/

Information about this Article
This Article has not yet been peer-reviewed
This Article was published on 19th January, 2017 at 11:27:21 and has been viewed 1196 times.

Creative Commons License
This work is licensed under a Creative Commons Attribution 2.5 License.
The full citation for this Article is:
Sparavigna, A. (2017). GIMP Retinex filter applied to arts: Gerrit van Honthorst and his Chiaroscuro. PHILICA.COM Article number 928.

<< Go back Review this ArticlePrinter-friendlyReport this Article

Website copyright © 2006-07 Philica; authors retain the rights to their work under this Creative Commons License and reviews are copyleft under the GNU free documentation license.
Using this site indicates acceptance of our Terms and Conditions.

This page was generated in 0.2548 seconds.