Home | GR32_Resamplers |
Contract
procedure Contract(Src, Dst: TBitmap32; Kernel: TIntegerMap; CenterX, CenterY: Integer);
Description
Contract performs rasterization using the TContracter sampler. The Kernel parameter specifies a weight matrix which is centered at the coordinated (X + CenterX, Y + CenterY) for each pixel coordinate (X, Y).
Output pixels are computed from the formula
where f corresponds to the source bitmap and b corresponds to the kernel (formally described as a structuring element).
See Also
TBitmap32, TContracter, TIntegerMap
Copyright ©2000-2007 Alex Denisov and Contributors - Graphics32 v1.8.3 - Build on 4-March-2007