Scaling functions

Overview

The scaler module provides scaling functions for images, thanks to the C++ scaler engine (_scaler extension).

The following functions are available:

  • resize(): resize an image using the scaler engine

Reference

plotpy.mathutils.scaler.resize(data, shape, interpolation=None)[source]

Resize array data to shape (tuple) interpolation: ‘nearest’, ‘linear’ (default), ‘antialiasing’