Export Raster as .tiff without Alpha band

1002
3
03-03-2022 07:29 PM
KBrie
by
New Contributor

Is it possible to Export Raster to 8 bit unsigned .tiff with the renderer and force RGB without including the Alpha band? 

I am trying to use the output to train a Mask r CNN model and detect objects from Sentinel-2 imagery which requires a 3 band raster. 

0 Kudos
3 Replies
AndyAnderson
Occasional Contributor II

Three bands requires at least three bytes per pixel. Since bytes come in powers of two, this typically means four bytes total, and the fourth is used for the alpha channel. If you don’t want the effects of the alpha channel, then set it to all zeros, i.e. no transparency (100% opaque).

0 Kudos
KBrie
by
New Contributor
Is this done before exporting the raster?
0 Kudos
AndyAnderson
Occasional Contributor II

You’re starting with Sentinel-2 data, right? It should be in GML-JPEG2K format, one for each band and 16 bits, and you can open them directly in ArcGIS Pro. You can then use the tool Composite Bands to join them into a single raster. You’ll then need to convert them to an 8-bit TIFF with the tool Copy Raster (make sure you scale the pixel value). The result has no explicit alpha channel (i.e. the fourth byte is all zeros).

0 Kudos