I have a tiff image with 4 bands (Red, Green, Blue and Infrared) and I need to extract two of them.
I want to input one image and split it and make two images. I want to do it with GeoTools since I use Java to develop.
How I do that?
PS: I can do it with gdal and command line. (e.g. gdal_translate -b 3 in.tiff out.tiff which 3 is the number of band)