[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)
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:
- rasterops
- binary morphology
[--update: Oct 7, 2007]
- grayscale morphology
[--update: July 18, 2007]
- convolution
- scaling
[--update: May 27, 2007]
- rotation
- affine transformations
- seed filling and connected components
- applications:
- grayscale and color image enhancement
- connectivity-preserving thinning
[--update: Aug 30, 2007]
- playing around
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:
Here are some references to selected papers
on image processing and image analysis that you might find interesting.
[Leptonica Home Page]