📜  规范化 numpy 数组 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:32.640000             🧑  作者: Mango

代码示例3
norm = np.linalg.norm(an_array_to_normalize)

    normal_array = an_array_to_normalize/norm

or for pixels to be obtained in my case. This can be used to map values to another scale from the current scale of values.

    scaled_array = (array/np.float(np.max(array)) )*255.