ImageFile.round

ImageFile.round(decimals=0, out=None)

Return each element rounded to the given number of decimals.

Refer to numpy.around for full documentation.

numpy.ndarray.round : corresponding function for ndarrays numpy.around : equivalent function