How to count the number of pixels with a specific value of a .gif file in QGIS

المشرف العام

Administrator
طاقم الإدارة
So I have this .gif file that has values from 0-255 but not entirely grayscale. I tried the r.report and it does not work. I also tried the raster calculator like: "myraster@1"= 1 (because I want to count how many pixels have the value 1) then I get a completely wrong output with nonsense values. Is it that the r.report and the raster calculator can't handle .gif files or am I doing something wrong? The white pixels have a value of 1 and I want to count these pixels. Here is the .gif file.



أكثر...
 
أعلى