[GRASS5] region growing - r.mapcalc bug?

Jachym Cepicky jachym.cepicky at centrum.cz
Wed Mar 2 02:08:45 EST 2005


hallo,
On Wed, Mar 02, 2005 at 11:25:02AM +1300, Hamish wrote:
> > I try to produce some region growing map after the approach descriped in
> > "r.mapcalc: An Algebra for GIS and Image Processing" (site no. 7) from
> 
> 
> did you try r.grow? (new module for GRASS 6 versus old GRASS 5 version)
> 
The problem is, I need something more complicated:
     if(seed && (raster[-1,-1]> raster[1,1]),sead+1,\
     if(seed && (raster[-1,0] > raster[1,0]),sead+1,\
     if(seed && (raster[-1,1] > raster[1,-1]),sead+1,\
     if(seed && (raster[0,-1] > raster[0,1]),sead+1,\
     if(seed && (raster[0,1]  > raster[0,-1]),sead+1,\
     if(seed && (raster[1,-1] > raster[-1,1]),sead+1,\
     if(seed && (raster[1,0]  > raster[-1,0]),sead+1,\
     if(seed && (raster[1,1]  > raster[-1,-1]),sead+1,null()))))))))

Jachym
-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://www.fle.czu.cz/~jachym/gnupg_public_key/




More information about the grass-dev mailing list