I would like to be able to extract the same values that QGIS obtains automatically when calculating the 2% and 98% values for a raster in GDAL. But GDAL only yields the result for the minimal and maximum value of the pixel as -1 and 1.
Someone has any idea of what's happening here?
For obtain the gdal information i used :
gdalinfo -mm RASTER
But I am not looking for the Min and Max values for the raster, but for the Cumulative count cut. My file is a GeoTiff
The GeoTiff is a Raster of NDVI values.