/usr/share/doc/python-imaging/html/imagecrackcode-module-pil-plus.htm is in python-imaging-doc-html 1.1.2-1.2.
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 8 9 10 11 12 13 14 15 | <html><head><title>The ImageCrackCode Module (PIL Plus)</title><link rel="stylesheet" type="text/css" href="effbot.css" /></head><body><div id="IMAGECRACK-MODULE" class="chapter"><h1 style="chapter">The ImageCrackCode Module (PIL Plus)</h1><p>The ImageCrackCode module allows you to detect and measure features in
an image. This module is only available in the PIL Plus package.</p><div class="sect1"><h2 style="sect1">Functions</h2><div class="sect2"><h3 style="sect2">CrackCode (class)</h3><p><tt>CrackCode(image, position)</tt> identifies a feature in
the given image. If the position is omitted, the constructor searches
from the top left corner.</p></div></div><div class="sect1"><h2 style="sect1">Methods and attributes</h2><div class="sect2"><h3 style="sect2">area</h3><p><tt>area</tt> (attribute). The feature area, in pixels.</p></div><div class="sect2"><h3 style="sect2">bbox</h3><p><tt>bbox</tt> (attribute). The bounding box, given as a
4-tuple (left, upper, right, lower).</p></div><div class="sect2"><h3 style="sect2">caliper</h3><p><tt>caliper</tt> (attribute). The caliper size, given as a
2-tuple (height, width).</p></div><div class="sect2"><h3 style="sect2">centroid</h3><p><tt>centroid</tt> (attribute). The center of gravity.</p></div><div class="sect2"><h3 style="sect2">edge</h3><p><tt>edge</tt> (attribute). True if the feature touches the
edges of the image, zero otherwise.</p></div><div class="sect2"><h3 style="sect2">links</h3><p><tt>links</tt> (attribute). The number of links in the
crack code chain.</p></div><div class="sect2"><h3 style="sect2">offset</h3><p><tt>offset</tt> (attribute). The offset from the upper left
corner of the image, to the feature's bounding box,</p></div><div class="sect2"><h3 style="sect2">start</h3><p><tt>start</tt> (attribute). The first coordinate in the
crack code chain.</p></div><div class="sect2"><h3 style="sect2">top</h3><p><tt>top</tt> (attribute). The topmost coordinate in the
crack code chain.</p></div><div class="sect2"><h3 style="sect2">hit</h3><p><tt>hit(xy)</tt>. Check if the given point is inside this
feature.</p></div><div class="sect2"><h3 style="sect2">topath</h3><p><tt>topath(xy)</tt>. Return crack code outline as an
ImagePath object.</p></div><div class="sect2"><h3 style="sect2">getmask</h3><p><tt>getmask()</tt>. Get filled feature mask, as an image
object.</p></div><div class="sect2"><h3 style="sect2">getoutline</h3><p><tt>getoutline()</tt>. Get feature outline, as an image
object.</p></div></div></div></body></html>
|