Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用存储在短数组中的 16 位像素数据在 Java 中创建灰度图像?
考虑BufferedImage.TYPE_USHORT_GRAY。这里有教程。
BufferedImage.TYPE_USHORT_GRAY
嘿,将您的 short[] 转换为 BufferedImage 可能会有所帮助。它对我来说非常有用,试试吧。这里 pix 是我的短数组。