【发布时间】:2020-02-16 23:24:15
【问题描述】:
我目前正在开发一个工具,其中 1 个图像的通道需要用 3 个其他图像替换。
例如:
I have an image "X" and the channels would be X.r, X.g and X.b respectively.
I have 3 other images ["A","B","C"]
Those 3 images needs to replace the channels in X.
So the result would be X.A, X.B and X.C.
最好的方法是什么?
【问题讨论】:
-
最好的方法是阅读pillow的文档
-
如果要替换
X的所有频道,为什么首先需要X?输出中不会留下任何东西。 -
到底是什么问题?你有没有尝试过,做过任何研究? Stack Overflow 不是免费的代码编写服务。请参阅:tour、How to Ask、help center、meta.stackoverflow.com/questions/261592/…。
-
@AMC 我确实做了一些研究,但没有任何结果。因此问题。我不是在这里寻找免费代码。欢迎新的stackoverflow成员的方式:)
标签: python python-imaging-library