TInvertedDistanceWeightingSampler

Ancestors

TPersistent
   |
TNotifiablePersistent
   |
TCustomSampler
   |
TCustomSparsePointGradientSampler
   |
TCustomArbitrarySparsePointGradientSampler

Description

A sparse point inverted distance weighting color gradient interpolation.

The inverted distance weighting method uses a ratio of the inverse distances to each of the given points to determine the color of the pixel at the current point. It is a bit like having spotlights of color at each point which interacts with each other, as the light spreads out to a uniform average of all the given colors at infinity. For a Power of 2 the interpolation is also called Shepards. For lower power will sharpen the points of color, while higher power values approach the TVoronoiSampler sampler.


Figure 1: Output of a TInvertedDistanceWeightingSampler with the underlying polygon vertices marked with circles (power = 1, 2, 4, 8)


Reference

Methods Properties Events
In TInvertedDistanceWeightingSampler:
Create Power
FinalizeSampling
GetSample
PrepareSampling
In TCustomArbitrarySparsePointGradientSampler:
Add
Clear
SetColorPoints
SetPoints
In TCustomSparsePointGradientSampler:
Color
ColorPoint
Count
Point
In TCustomSampler:
GetSampleBounds
HasBounds
In TNotifiablePersistent:
BeginUpdate UpdateCount OnChange
Changed
Destroy
EndUpdate

See Also

Examples, TVoronoiSampler