Class: Vips::Interpolate
- Inherits:
-
Object
- Object
- GObject::GObject
- Object
- Vips::Interpolate
- Defined in:
- lib/vips/interpolate.rb
Overview
An interpolator. One of these can be given to operations like Vips::Image#affine or Vips::Image#mapim to select the type of pixel interpolation to use.
To see all interpolators supported by your libvips, try
$ vips -l interpolate
But at least these should be available:
-
:nearest
Nearest-neighbour interpolation. -
:bilinear
Bilinear interpolation. -
:bicubic
Bicubic interpolation. -
:lbb
Reduced halo bicubic interpolation. -
:nohalo
Edge sharpening resampler with halo reduction. -
:vsqbs
B-Splines with antialiasing smoothing.
For example:
ruby im = im.affine [2, 0, 0, 2], :interpolate => Vips::Interpolate.new(:bicubic)
Defined Under Namespace
Modules: InterpolateLayout Classes: ManagedStruct , Struct
Instance Attribute Summary
Attributes inherited from GObject::GObject
Instance Method Summary collapse
-
#initialize(name) ⇒ Interpolate
constructor
A new instance of Interpolate.
Methods inherited from Object
#get , #get_pspec , #get_typeof , #get_typeof_error , print_all , #set , #signal_connect
Methods inherited from GObject::GObject
#ffi_managed_struct , ffi_managed_struct , #ffi_struct , ffi_struct