JCL Help:TResamplingFilter

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Filters for stretch function.


Pascal

 public TResamplingFilter = (
rfBox,
rfTriangle,
rfHermite,
rfBell,
rfSpline,
rfLanczos3,
rfMitchell
);


Description

The filters used in the resampling code differ mainly in complexity but also in the way they calculate pixel contributions. These contributions are used to calculate the final pixel and depend on the original value and the values of neighbor pixels. How many pixel are taken into the calculation is determined by the filter radius, which essentially describes the number of pixels around a center pixel (the radius can be fractional to use partial pixels too). The reason why there are several filters instead of only one is that you can trade off speed against quality. For nearly interactive resampling only the box (and perhaps the triangle) filters are suitable. The quality resulting from those filters is only on average level. Filters like Lanczos3 or Bell produce much better results which are well comparable with those of Photoshop's bicubic interpolation.


About

Unit

JclGraphics


Navigation

no pages or subcategories

Donator

Mike Lischke


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page