Function iacero

Synopse

Erode an image conditionally.

  • y = iacero(f, g, b=iasecross(), n=1)
    • y: Image
    • f: Image
    • g: Image Conditioning image.
    • b: Structuring Element
    • n: Double (number of iterations).

Description

iacero creates the image y by eroding the image f by the structuring element b conditionally to g. This operator may be applied recursively n times.

Examples

Example 1

01. from ia870 import iacero
02. from ia870 import ianeg
03. from ia870 import iatext
04. from ia870 import iadil
05. from ia870 import iaseline
06. from ia870 import iasebox
07. 
08. 
09. f = ianeg( iatext('hello'))
10. iashow(f)
11. g = iadil(f,iaseline(7,90))
12. iashow(g)
13. a1=iacero(g,f,iasebox())
14. iashow(a1)
15. a13=iacero(a1,f,iasebox(),13)
16. iashow(a13)

Equation