10 janv. 2023 08:46:42 Maris Nartiss <[email protected]>:

> 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
_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to