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_parameter

Cubic resampling parameter (alpha)

input

Input bitmap

input_rectangle

Specifies a rectangular working area in the input bitmap.

mode

Resmpling algorithm (mode)

output

Output bitmap

output_rectangle

Specifies a rectangular working area in the output bitmap.