开发者

Converting an image in 8-bit grayscale RAW image in java

开发者 https://www.devze.com 2023-01-01 13:22 出处:网络
Please let me know how to convert 开发者_如何学编程a JPG/PNG/BMP image into a 8-bit grayscale RAW image in Java. Is it possible to obtain using ImageIO API?You can convert an image to 8-bit grayscale

Please let me know how to convert 开发者_如何学编程a JPG/PNG/BMP image into a 8-bit grayscale RAW image in Java. Is it possible to obtain using ImageIO API?


You can convert an image to 8-bit grayscale using ColorConvertOp with a BufferedImage.TYPE_BYTE_GRAY as the filter() destination. Here's an example.

RAW is actually a family of vendor-defined image formats, many of which can be read with jrawio. Once converted, you might be able to write with ExifTool.

0

精彩评论

暂无评论...
验证码 换一张
取 消