I am using the Majority/Minority SAGA tool in QGIS 3.16.10 on a binary 0,1 raster file to try and smooth the classification. When I run this tool it generates a raster with lots of values between 0 and 1. What do they represent? Image below showing the resulting image where values range between 0 and 1. My understanding was that the output would be an updated binary image where individual cells have been added to clusters of 0 or 1 cells (depending on the threshold setting)

enter image description here

  • Unfortunately, I cannot reproduce this issue at my end. Could you share your data and the tool setup?
    – Kazuhito
    Commented Nov 26, 2021 at 23:28
  • See here about the prinicples how majority filter works - it's about ArcGIS, but the very principle is not software specific: desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/…
    – Babel
    Commented Dec 2, 2021 at 11:48
  • Thanks. I understand the concept of Majority filter , so was surprised that the output produced values say 0.12 or 0.24 from an input that has only 0 and 1 value cells. Therefore I was expecting changed cells to be 0 or 1. Hope that makes sense Commented Dec 3, 2021 at 8:42

1 Answer 1


You may need to convert the raster to an SDAT format before running the Majority filter.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.