Filters.mesa
Last Edited By: Marty Hiller, September 6, 1984 11:40:54 pm PDT
Copyright (C) 1984 by Xerox Corporation. All rights reserved.
DIRECTORY
ImagerPixelMaps   USING [PixelMap];
Filters: CEDAR DEFINITIONS
= BEGIN
PixelWeight: PUBLIC PROC[
   centerA, widthA, centerB, widthB: REAL]
RETURNS[ weight: REAL ← 0.0];
Pixel A is the covering pixel, pixel B is the covered one. This tells you how much of pixel B is still uncovered, either before or after the covering pixel depending on afterPixelA
UncoveredRatio: PUBLIC PROC[
   centerA, widthA, centerB, widthB: REAL,
   afterPixelA: BOOLEAN]
RETURNS[ weight: REAL ← 0.0];
SetFilter: PUBLIC PROC[ i: [0..2)];
ShowFilter: PUBLIC PROC[ i: [0..7), pix: ImagerPixelMaps.PixelMap];
GetFilterWidth: PUBLIC PROC[] RETURNS[ INTEGER];
END.