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

Home » Public Forums » archive » 3D Matrix
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
3D Matrix [message #32774] Mon, 11 November 2002 12:26 Go to next message
pushyar is currently offline  pushyar
Messages: 9
Registered: October 2002
Junior Member
HI..
In order to perform 3D dilation, i need to create a 3D structuring
element. Can anybody tell me how i can create a 3D matrix.
I have a 2D matrix as
Str_Elem = [[1,1,1],[1,1,1],[1,1,1]]
I want to extend it to 3D. Please help me with this.

Please let me know if there is any way to access the ERODE or DILATE
code?

Cheers,
Akhila.
Re: 3D Matrix [message #32865 is a reply to message #32774] Tue, 12 November 2002 10:54 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
Pushya wrote:
>
> I think that will create a 3D matrix with all 'ones'. The structuring
> element i need will look like this.
> Str_Elem1 = [[0,0,0],[0,1,0],[0,0,0]]
> Str_Elem2 = [[0,1,0],[1,1,1],[0,1,0]]
> Str_Elem3 = [[0,0,0],[0,1,0],[0,0,0]]

Str_Elem = [[[0,0,0],[0,1,0],[0,0,0]], $
[[0,1,0],[1,1,1],[0,1,0]], $
[[0,0,0],[0,1,0],[0,0,0]]]
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: 3D Matrix
Next Topic: When does IDL use MPs?

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

Current Time: Wed Oct 08 19:19:31 PDT 2025

Total time taken to generate the page: 0.00392 seconds