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, TKernelResampler.GetSample, TKernelResampler.TableSize, TCustomKernel, TKernelResampler
Copyright ©2000-2012 Alex Denisov and the Graphics32 Team - Graphics32 v1.9.1 - Build on 28-August-2012