S or /

SourceClass CubicResampler

from skia import CubicResampler
class CubicResampler:

Specify b and c (each between 0...1) to create a shader that applies the corresponding cubic reconstruction filter to the image.

Example values: b = 1/3, c = 1/3 "Mitchell" filter b = 0, c = 1/2 "Catmull-Rom" filter

See "Reconstruction Filters in Computer Graphics" Don P. Mitchell Arun N. Netravali 1988 https://www.cs.utexas.edu/~fussell/courses/cs384g-fall2013/lectures/mitchell/Mitchell.pdf Desmos worksheet https://www.desmos.com/calculator/aghdpicrvr Nice overview https://entropymine.com/imageworsener/bicubic/

Properties§

@property def b(self, /) -> float§
@property def c(self, /) -> float§

Methods§

Source@staticmethod def catmull_rom() -> CubicResampler§
Source@staticmethod def mitchell() -> CubicResampler§