【发布时间】:2020-12-26 04:58:38
【问题描述】:
我想将每个二维数组转换为 RGB 图像并将这个 RGB 图像返回给另一个函数,我该怎么做。我尝试通过PIL 和plt 做到这一点,但它对我不起作用。我尝试了两个多星期来找到我能做到的方法。
任何帮助将不胜感激。
for c in [cD5,cD4,cD3,cD2,cD1]:
x = np.linspace(0, 3844, len(c))
f = interp1d(x, c)
result.append(f(common_x))
normalized_result = preprocessing.normalize(result)
【问题讨论】:
标签: image image-processing 3d python-imaging-library rgb