### MATLAB >> mathematical morphology 3D structuring element

THE QUESTION is this:
I have a 7x8x6 binary 3D matrix, M, that I want to use as a 3D
structuring element B, B=mmimg2se(M);
but when I want to see it with "mmseshow" MatLab shows a different
size matrix, why?
how does mmseshow work?
can I trust that structuring element I produced has really the shape
I created in the matrix M?

if you answer this I pay you a beer

MIk

```Hi
the script I was running crashed and
the message asked to send the report that I put at the bottom of this
message.
I am applying Mathematical Morphology in three dimensions.
I got some errors trying to transform a simple 3D
matrix into a structuring element, in some cases the
error message says
"??? mm_selist2neigh: SE does not have origin 57 57
mm_dist: cannot create pixel displ. list"
what does it mean? NOte that the number 57 is exactly the number of
elements of the matrix I transform into a structuring element.
<help mm_selist2neigh> can't be shown, why?
Today finally I was making the union of two
structuring elements (with <mmseunion>) and the MatLab
crashed with th report attached.

Mick
```

```Hi!
Ie been working with the morphology toolbox in Matlab. But I have
some questions:
I don know how to run my program in another computer that doesn
have Matlab installed. Is it necessary to install Matlab?
Could I design (programming) my "own" structuring elements in Matlab?
How could I do for programming reconstruction by dilation? I read
this operation can be done using the command imreconstruct. Is it
correct?
How is the algorithm designed to know "when the stability is
reached"?
I a mess and I hope someone could give one suggestion!!!!! Thank
you. Claudia.
```

```Dear all,

Let's say I need a cubic element with 9 voxels. Then, how should I
define the HEIGHT matrix?
```

```Hi
I am using mat lab's morphology tool to apply the watershed operation
on 3D "images" which are simply three dimensional matrices. I get as
a result surfaces with a lot of "branches", quite noisy and
disturbing in fact. I was expecting some midway surfaces between the
labelled volumes in the marker image but the output is not really
easy to interpretate.
Anybody tried this before? anybody has an explanation? I can send
examples by mail if needed.

peace

Mik
```