[GRASS-user] Probabilistic neighborhood analysis
Moritz Lennert
mlennert at club.worldonline.be
Tue Jan 10 02:38:24 PST 2023
10 janv. 2023 08:46:42 Maris Nartiss <maris.gis at gmail.com>:
> Hello Bernardo,
> although a solution with r.mapcalc random could be made to work, I'd
> say creating a new dedicated module is the way to go. Just an idea –
> create neighbour count raster (how many cells with centre class are in
> a sliding window), in second pass unroll classes based on their count
> and then choose random class from obtained list.
>
> I don't think it is so common to infill (inpaint) categorical values
> in classification results of remote sensing.
I think this is quite common. However, it is generally done using majority rules or similar. I don't think I have seen much use of randomization in that context.
Moritz
More information about the grass-user
mailing list