Morpho.
More...
#include <DMorphoInstance.h>
Inherits UniqueInstance< T >.
◆ getDefaultSE()
Get Default Structuring Element.
- Returns
- default structuring element
◆ setDefaultSE()
void setDefaultSE |
( |
const StrElt & |
se | ) |
|
|
static |
Modify Default Structuring Element.
- Parameters
-
[in] | se | : structuring element |
Example
import smilPython as sp
im = sp.Image("lena.png")
saveSE = sp.Morpho.getDefaultSE()
sp.Morpho.setDefaultSE(sp.SquSE))
imd = sp.Image(im)
sp.dilate(im, imd, 3)
sp.Morpho.setDefaultSE(saveSE)
The documentation for this class was generated from the following files:
- Morpho/include/DMorphoInstance.h
- Morpho/src/DMorphoInstance.cpp