nabu.processing.padding_base
source module nabu.processing.padding_base
Classes
-
PaddingBase — A class for performing padding based on coordinate transform. The Cuda and OpenCL backends will subclass this class.
source class PaddingBase(shape, pad_width, mode='constant', **kwargs)
A class for performing padding based on coordinate transform. The Cuda and OpenCL backends will subclass this class.
Initialize a Padding object.
Parameters
-
shape : tuple — Image shape
-
pad_width : tuple — Padding width for each axis. Please see the documentation of numpy.pad().
-
mode : str — Padding mode
Other Parameters
constant_values: tuple Tuple containing the values to fill when mode="constant" (as in numpy.pad)