[Leptonica Home Page]

Source Code and Information


Updated: July 13, 2008

    The road to wisdom? -- Well, it's plain
    and simple to express:
        Err
        and err
        and err again
        but less
        and less
        and less.

            --Piet Hein (Grooks)

Contents

This site contains well-tested C code for some basic image processing operations, along with a description of the functions and some design methods. A full set of affine transformations (translation, shear, rotation, scaling) on images of all depths is included, with the exception that some of the scaling methods do not work at all depths. There are also implementations of binary morphology, grayscale morphology, convolution and rank order filters, and applications such as jbig2 image processing and color quantization.

You will also find basic utilities for the safe and efficient handling of arrays (of strings, numbers, number pairs and image-related geometrical objects), byte queues, generic stacks, generic lists, and endian-independent indexing into 32-bit arrays.

Documentation external to the source code is provided for the following operations and applications:

  1. rasterops

  2. binary morphology [--update: Oct 7, 2007]

  3. grayscale morphology [--update: July 18, 2007]

  4. convolution

  5. scaling [--update: May 27, 2007]

  6. rotation

  7. affine transformations

  8. seed filling and connected components

  9. applications:
  10. grayscale and color image enhancement

  11. connectivity-preserving thinning [--update: Aug 30, 2007]

  12. playing around

Download

Click here to download the source. [ update: July 13, 2008]

Be sure to download the README as well!

You may also find these pages useful:


Related Publications

Here are some references to selected papers on image processing and image analysis that you might find interesting.





[Leptonica Home Page]