[GRASS-user] identifying diagonal clumps

Milton Cezar Ribeiro miltinho.astronauta at gmail.com
Sun Sep 14 18:16:04 EDT 2008


Dear all,
I am using r.cluster to identify the clumps of pixels of my binary map
(0=matrix and 1=habitat).
But when I run r.cluster, I get and output cluster map as (B) (see below)
and in fact
I would like the those diaagonal patches were clumped as the same clump.
Almost to those that work with landscape ecology, the patches are formed
using rules with 8 neighbors intead of 4 neighbors.

I know that I can do it on other programs, but I need to implement a
sequence of
codes on GRASS, and I really need a rule-8 to build my patches map. Any
idea?

Best wishes,

miltinho astronauta
brazil

(A)
00000000
01000000
00110000
00110000
00001100
00001100
00001100
00000000
(B)
00000000
01000000
00220000
00220000
00003300
00003300
00001100
00000000
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20080914/8ad440cc/attachment.html


More information about the grass-user mailing list