[GRASSLIST:4891] Re: remove small islands

Markus Neteler neteler at itc.it
Sun Nov 21 17:07:00 EST 2004


For higher precision, you may use:

GRASS 5.7:
- r.to.vect
- v.clean
  rmarea - remove small areas, the longest boundary with adjacent area is removed

Markus

On Sat, Nov 20, 2004 at 01:45:39PM -0200, Sandro Klippel wrote:
> r.neighbors method=mode
> 
> Em Sáb 20 Nov 2004 13:00, Martin Wegmann escreveu:
> > hello,
> >
> > I tried to remove islands in a classified raster image which are smaller
> > than 1 -2 pixel.
> >
> > Is there any command which removes small islands and assigns the prevailing
> > value of the surrounding area to this island?
> >
> > r.neighbors might be what I want if there would a
> > method=dominant/prevailing value, method=average just smoothed the image.
> >
> > any ideas? thanks in advance, Martin
> 
> -- 
> Instituto IGARÉ
> http://geocities.yahoo.com.br/institutoigare
> e-mail: institutoigare at yahoo.com.br

-- 
Markus Neteler     <neteler itc it>       http://mpa.itc.it
ITC-irst -  Centro per la Ricerca Scientifica e Tecnologica
MPBA - Predictive Models for Biol. & Environ. Data Analysis
Via Sommarive, 18        -       38050 Povo (Trento), Italy




More information about the grass-user mailing list