Vips.InterpolateClass¶
Fields¶
Name |
Type |
Access |
Description |
|---|---|---|---|
get_window_offset |
r |
return the window offset for this method |
|
get_window_size |
r |
return the size of the window needed by this method |
|
interpolate |
r |
the interpolation method |
|
parent_class |
r |
||
window_offset |
r |
or just set this for a constant window offset |
|
window_size |
r |
or just set this for a constant window size |
Methods¶
None
Details¶
- class Vips.InterpolateClass¶
window_size is the size of the window that the interpolator needs. For example, a bicubic interpolator needs to see a window of 4x4 pixels to be able to interpolate a value.
You can either have a function in get_window_size which returns the window that a specific interpolator needs, or you can leave get_window_size
NULLand set a constant value in window_size.window_offset is how much to offset the window up and left of (x, y). For example, a bicubic interpolator will want an window_offset of 1.
You can either have a function in get_window_offset which returns the offset that a specific interpolator needs, or you can leave get_window_offset
NULLand set a constant value in window_offset.You also need to set [property`Object`:py:data::nickname<Vips.InterpolateClass.props.nickname>] and [property`Object`:py:data::description<Vips.InterpolateClass.props.description>] in [class`Object`].
::: seealso [callback`InterpolateMethod`], [class`Object`] or [func`Interpolate`.bilinear_static].