【发布时间】:2021-09-25 06:02:57
【问题描述】:
我想在 Python 中使用 Wand 从图像中获取通道(例如红色)。
我已经知道如何获取频道 using ImageMagick itself,但我想这样做,但使用 Wand
在我看来它没有在 Wand 中实现,或者我错过了什么?
【问题讨论】:
我想在 Python 中使用 Wand 从图像中获取通道(例如红色)。
我已经知道如何获取频道 using ImageMagick itself,但我想这样做,但使用 Wand
在我看来它没有在 Wand 中实现,或者我错过了什么?
【问题讨论】:
使用color_matrix 找到了解决方法:
img.color_matrix([
[1, 0, 0],
[1, 0, 0],
[1, 0, 0],
])
【讨论】: