Class: Vips::Kernel
- Inherits:
-
Symbol
- Object
- Symbol
- Vips::Kernel
- Defined in:
- lib/vips/kernel.rb
Overview
A resizing kernel. One of these can be given to operations like Image#reduceh or Image#resize to select the resizing kernel to use.
At least these should be available:
-
:nearestnearest-neighbour interpolation -
:linearlinear interpolation -
:cubiccubic interpolation -
:mitchellMitchell interpolation -
:lanczos2two-lobe Lanczos -
:lanczos3three-lobe Lanczos -
:mks2013convolve with Magic Kernel Sharp 2013 -
:mks2021convolve with Magic Kernel Sharp 2021
For example:
im = im.resize 3, kernel: :lanczos2