Dilate

procedure Dilate(Src, Dst: TCustomBitmap32; Kernel: TIntegerMap; CenterX, CenterY: Integer);

Description

Dilate performs rasterization using the TDilater 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

TCustomBitmap32, TDilater, TIntegerMap