Missing pixels on conversion to 8-bit

457
0
01-07-2024 10:25 PM
Labels (1)
Y_Chau
by
Occasional Contributor

Hello

I am converting images from 4-band 16-bit to 3-band 8-bit. Reason is to reduce size and since these are not for any scientific analysis, therefore 3 bands and 8-bit is enough.

I use 2 tools to achieve this. First "Make Raster Layer" to get 3 bands out of 4 and then "Copy Raster" to convert 16-bit to 8-bit. "Make Raster Layer" gives me a temporary layer which looks good, no missing pixels here.

After running the "Copy Raster" tool I get the 8 bit images and I see holes in them in dark shadow areas. I use below settings:

  • Output Raster Dataset: .TIF
  • Ignore Background Value: Blank (Blank is default. Making it 0 doesn't make any difference)
  • NoData Value: 0 (0 is default as in parent image)
  • Pixel type: 8-bit unsigned
  • Scale Pixel Value: Checked (Unchecked produces a blank white image)
  • Compression: JPEG

Rest all parameters are default. Its obvious that the lower values are being converted to zero as the data is rescaled from 16 to 8-bit. How can this be avoided so that there are no NoData pixels inside the image?

@VinayViswambharan can you help?

Sincerely

0 Kudos
0 Replies