This file is indexed.

/usr/share/doc/python-imaging/html/imageenhance.htm is in python-imaging-doc-html 1.1.2-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
5
6
7
<html><head><title>The ImageEnhance Module</title><link rel="stylesheet" type="text/css" href="effbot.css" /></head><body><div id="IMAGEENHANCE-MODULE" class="chapter"><h1 style="chapter">The ImageEnhance Module</h1><p>This module contains a number of classes that can be used for image enhancement.</p><div class="sect1"><h2 style="sect1">Example</h2><div class="example"><b style="example">Example: Vary the Sharpness of an Image</b><pre>import ImageEnhance

enhancer = ImageEnhance.Sharpness(image)

for i in range(8):
    factor = i / 4.0
    enhancer.enhance(factor).show(&quot;Sharpness %f&quot; % factor)</pre></div><p>Also see the <i>enhancer.py</i> demo program in the <i>Scripts</i> directory.</p></div><div class="sect1"><h2 style="sect1">Interface</h2><p>All enhancement classes implement a common interface, containing a single method:</p><div class="sect2"><h3 style="sect2">enhance</h3><p><tt>enhance(factor)</tt>. Returns an enhanced image. The factor is a floating point value controlling the enhancement. Factor 1.0 always returns a copy of the original image, lower factors means less colour (brightness, contrast, etc), and higher values more. There are no restrictions on this value.</p></div></div><div class="sect1"><h2 style="sect1">The Color Class</h2><p>The colour enhancement class is used to colour balance of an image, similar to the controls on a colour TV set. This class implements the enhancement interface as described above.</p><div class="sect2"><h3 style="sect2">Color (constructor)</h3><p><tt>Color(image)</tt>. Creates an enhancement object for adjusting colour in an image. A factor of 0.0 gives a black and white image, a factor of 1.0 gives the original image.</p></div></div><div class="sect1"><h2 style="sect1">The Brightness Class</h2><p>The brightness enhancement class is used to control the brightness of an image.</p><div class="sect2"><h3 style="sect2">Brightness (constructor)</h3><p><tt>Brightness(image)</tt>. Creates an enhancement object for adjusting brightness in an image. A factor of 0.0 gives a black image, factor 1.0 gives the original image.</p></div></div><div class="sect1"><h2 style="sect1">The Contrast Class</h2><p>The contrast enhancement class is used to control the contrast of an image, similar to the control on a TV set.</p><div class="sect2"><h3 style="sect2">Contrast (constructor)</h3><p><tt>Contrast(image)</tt>. Creates an enhancement object for adjusting contrast in an image. A factor of 0.0 gives an solid grey image, factor 1.0 gives the original image.</p></div></div><div class="sect1"><h2 style="sect1">The Sharpness Class</h2><p>The sharpness enhancement class is used to control the sharpness of an image.</p><div class="sect2"><h3 style="sect2">Sharpness (constructor)</h3><p><tt>Sharpness(image)</tt>. Creates an enhancement object for adjusting sharpness in an image. The factor 0.0 gives a blurred image, 1.0 gives the original image, and a factor of 2.0 gives a sharpened image.</p></div></div></div></body></html>