ImagerSmoothDoc.tioga
Michael Plass, October 7, 1985 1:42:51 pm PDT
ImagerSmooth
CEDAR 6.0 — FOR INTERNAL XEROX USE ONLY
ImagerSmooth
Michael Plass
© Copyright 1985 Xerox Corporation. All rights reserved.
Abstract: A client package for creating anti-aliased sampled images via the Imager. Also provides a PixelMapOps interface, which may be useful for clients.
Created by: Michael Plass
Maintained by: ImagerImplementors^.pa
Keywords: anti-alias, imager, PixelMap
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
Interfaces:
ImagerSmooth
Provides a way of creating a context for rendering anti-aliased images via the Imager. See interface for details.
PixelMapOps
Provides various operations on PixelMaps.
ImagerSample
This package exports the procedure GetInterpolatedSamples in the ImagerSample interface.
Notes on the anti-aliasing technique and its limitations:
As in most anti-aliasing techniques of reasonable performance, ImagerSmooth makes some compromises that will show up in extreme cases. Users who care should be aware of these limitations, and choose the method for drawing the picture accordingly.
First of all, ImagerSmooth does not keep any partial-pixel coverage information in the sampled image buffer; the new colors are simply blended into the pixel in proportion to the mask coverage. This will normally not show if the mask boundaries are uncorrelated with each other, but if, for example, two masks abut with each other, some of the background will show through the joint.
Area averaging is used instead of a fancier weighting function.
Oversampling is used to calculate pixel coverage, so very high frequency components in the mask may still cause aliasing.
Sampled colors are sampled using bilinear interpolation. If the pixels of the sampled color are smaller than the output pixels, the sampled color is first filtered with a simple box filter. For best results, the original sampled color should not contain any frequencies greated than one-half of the sampling frequency.
Stipple colors are not supported; they will show as a uniform gray.