[GRASS-user] counting cells equal center cell on window
    Hamish 
    hamish_b at yahoo.com
       
    Fri Dec  5 21:57:02 EST 2008
    
    
  
Milton Cezar Ribeiro wrote
> I have a raster map with categorical values.
> I have many occurrence of alone-pixels, where all neighbours
> are different from a central pixels. So I need to change all pixels
> that differ from alll its neighbours for the "mode" value.
> 
> I know that "r.neighbours ..method=mode" return the mode value.
> Now I need to identify only those pixels that differ from neighbours.
you might check out the r.game_of_life module in wiki addons for inspiration.
Hamish
      
    
    
More information about the grass-user
mailing list