3D Matrix [message #32774] |
Mon, 11 November 2002 12:26  |
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  |
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]]]
|
|
|