type TKernelMode = (kmDynamic, kmTableNearest, kmTableLinear);
TKernelMode defines how a kernel will be used in TKernelResampler, when GetSample methods are called.
- kmDynamic - Uses direct calls to the kernels filter method. Being precise, this mode is also quite expensive. The curve display in the resamplers example shows how the different weight curves are configured.
- kmTableNearest - Uses precalculated weight tables. Being the fastest, this mode can produce fair results. An option is to increase the tablesize.
- kmTableLinear - Uses precalculated weight tables, but in contrast to kmTableNearest this mode will perform linear interpolation between precalculated weights. Being somewhat slower than kmTableNearest, but faster than kmDynamic, this mode produces results good results.
Examples, TCustomKernel, TKernelResampler, TKernelResampler.GetSample, TKernelResampler.TableSize
Copyright ©2000-2016 Alex Denisov and the Graphics32 Team - Graphics32 v2.0 - Built on 25-April-2017