Convert image to grayscale 8-bit RAW image in java

Please let me know how to convert a JPG / PNG / BMP image to an 8-bit grayscale RAW image in Java. Can I use the ImageIO API?

+4
source share
1 answer

You can convert the image to 8-bit shades of gray using ColorConvertOp with BufferedImage.TYPE_BYTE_GRAY as the filter() destination. Here is an example .

RAW is actually a family of image formats defined by the manufacturer, many of which can be read using jrawio . After the conversion, you can write ExifTool .

+2
source

Source: https://habr.com/ru/post/1311504/


All Articles