![](/img/trans.png)
[英]OpenCV reads an image as a 3-channel image while PIL reads the same image as a 1-channel image
[英]Python Pillow: how to produce 3-channel image from 1-channel image?
我嘗試使用的 Python 包僅適用於 3 通道圖像。 如果我有灰度 PNG 圖像,Pillow 的Image.open()
自然會將其讀取為單層圖像。 如何使用 Pillow 將 1 通道圖像轉換為 3 通道 RGB 圖像?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.