PerspWarp:
PROC [
texture: PixelArray ¬ NIL, -- source image
dest: SampleMaps, -- destination sample maps
smooth: BOOL ¬ FALSE, -- anti-alias or not?
points: ARRAY [0..4) OF IntegerPair] -- warp quadrilateral
RETURNS [transform: Matrix];
Perform the perspective warping on the input texture; return the perspective transformation.
CoonsWarp:
PROC [
pa1, pa2, pa3: PixelArray, -- source (pa1 for bw or r, pa2, 3 for g, b)
curves: ARRAY [0..4) OF PairSequence, -- outline curves
dest: SampleMaps, -- destination sample maps
control: REF CoonsControl ¬ NIL];
Warp the region of the source image bounded by the outline curves into the rectangular destination window. The mapping is a bilinear Coons surface, (see On Coons and Other Methods for the Representation of Curved Sufaces by Forrest, CGIP 1972).
For an 8-bpp source image, pa2 and pa3 is NIL; for 24bpp, pa1, pa2, pa3 are red, green, blue.
Filter options are point sampled (fast) or bilinear (box) filtering (slow).
If control # NIL then filter can be changed or operation aborted during this call.
If control = NIL, then filter type defaults to point sampling.