beatmup.BitmapResampler¶
- class beatmup.BitmapResampler¶
Resamples an image to a given resolution. Implements different resampling approaches, including standard ones (bilinear, bicubic, etc.) and a neural network-based 2x upsampling approach dubbed as “x2”.
- __init__(self: beatmup.BitmapResampler, context: beatmup.Context) None ¶
Methods
__init__
(self, context)Attributes
BOX
CONVNET
CUBIC
LINEAR
NEAREST_NEIGHBOR
Cubic resampling parameter (alpha)
Input bitmap
Specifies a rectangular working area in the input bitmap.
Resmpling algorithm (mode)
Output bitmap
Specifies a rectangular working area in the output bitmap.