Visualize / display the morphological structural element in Matlab

Can someone help visualize or build a morphological structuring element created by the 'strel' function just to structure the disk in Matlab? Thank.

+1
source share
1 answer

Yes, this is very strange, but I assume that, for reasons of efficiency, it strelreturns a special type that has the structure element type.

You should use the getnhood function, as in this link , something like this:

  se3 = strel('disk',15);
  nhood = getnhood(se3);
  imagesc(nhood); axis xy; colormap('gray');
+3
source

All Articles