[ad8447]: / (2) PyTorch_HistoTNet / util / normImageCustom.py

Download this file

8 lines (5 with data), 108 Bytes

1
2
3
4
5
6
import numpy as np
def normImageCustom(x, minX, maxX):
x2 = x - minX
x3 = x2 / maxX
return x3