Please the image below first.
What I'm trying to achieve is to get all the black pixels transparent. These are basically the areas where there are no satellite data. But because every raster is basically a rectangle, the "void" have been filled with pixels with a value of 0, which get represented in black.
Note: the raster has 3 channels, RGB, as uint16, with values from 0 to 65535 (LANDSAT 8). But in effect, to be rendered properly as "true" colors close from reality, I only use values from 5000 to 10000 for the RGB (see the right pane on the screenshot). Still though, it seems all the 0 values get shown in black. I'm pretty sure these are zeros, because, when doing the Style with equal intervals, there are 29.7% pixels with 0!
There could be several ways around it, but I haven't found a method successful so far.
- Style it in a way that all the pixels with 0 are shown with a transparent color (while still keeping the 5000-10000 interval for the RGB)
- Make all the zero values as NULL, or as "NoData" -> similar to ArcGIS, the pixels with NoData just aren't shown
- Cut the Image with a vector layer that fits only the part of the raster that I want (I tried, based on this tutorial https://youtu.be/SxUqdrx3gVk, but it still retains the black portions)
Any help is welcome, I haven't been successful so far.