Traneptora / jxlatte

Java JPEG XL decoder
MIT License
41 stars 6 forks source link

Any guidance on using the ExtraChannels? #26

Open siiinc opened 1 year ago

siiinc commented 1 year ago

I have an 8 band remote sensing image. I can get the values from the main channel.

 JXLDecoder decoder = new JXLDecoder(stream);
 JXLImage image = decoder.decode();
 BufferedImage bufferedImage = image.asBufferedImage();
 WritableRaster raster = bufferedImage.getRaster();

How to get access to the pixel vals from the extra channels that I can see referenced in image.imageHeader.extraChannelInfo?

Traneptora commented 1 year ago

At the moment, you can't, other than the alpha channel. It's on the TODO list.