[英]Python Pillow: how to produce 3-channel image from 1-channel image?
A Python package that I'm trying to use only works with 3-channel images.我尝试使用的 Python 包仅适用于 3 通道图像。 If I have a grayscale PNG image, Pillow's Image.open()
naturally reads it as a single-layer image.如果我有灰度 PNG 图像,Pillow 的Image.open()
自然会将其读取为单层图像。 How can I use Pillow to transform the 1-channel image into a 3-channel RGB image?如何使用 Pillow 将 1 通道图像转换为 3 通道 RGB 图像?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.