Function iaopenth

namespace:morph
page:iaopenth

Synopse

Opening Top Hat.

  • y = iaopenth(f, b=ia_secross(NULL))
    • y: Image
    • f: Image
    • b: Structuring Element structuring element
01. from numpy import *
02. 
03. def iaopenth(f, b=None):
04.     from iasubm import iasubm
05.     from iaopen import iaopen
06.     from iasecross import iasecross
07.     if b is None:
08.         b = iasecross()
09. 
10.     y = iasubm(f, iaopen(f,b))
11. 
12.     return y

Description

iaopenth creates the image y by subtracting the morphological opening of f by the structuring element b of f itself.

Examples

Example 1

1. from ia870 import iaopenth
2. from ia870 import iasebox
3. 
4. 
5. a = mmreadgray('keyb.tif')
6. mmshow(a)
7. b = iaopenth(a,iasebox(3))
8. mmshow(b)

Equation