comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » byte array
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
byte array [message #45101] Sun, 14 August 2005 11:18
panblosky is currently offline  panblosky
Messages: 17
Registered: May 2005
Junior Member
Hi,

I have a (n,n,n) byte array (n can be 64, 128, 256...). I want to
be able to "group" all points, i.e., group all the neighbouring values
of 1 in groups, all the neighbouring values of 2 in groups, and so on.
For example (2-D):

1 1 1 2 2 1 1 0
1 1 0 0 2 1 3 0
0 1 0 0 0 0 3 3

in this case, I have two groups of "1", one group of "2", one group of
"3" and three groups of "0".

Is there a smart way to do it?

Thanks!!!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: COMENZANDO CON IDL
Next Topic: Re: byte array

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:49:16 PDT 2025

Total time taken to generate the page: 0.00582 seconds