Function iaopenrecth

namespace:morph
page:iaopenrecth

Synopse

Open-by-Reconstruction Top-Hat.

  • y = iaopenrecth(f, bero=ia_secross(NULL), bc=ia_secross(NULL))
    • y: Image
    • f: Image
    • bero: Structuring Element (erosion)
    • bc: Structuring Element ( connectivity)
01. from numpy import *
02. 
03. def iaopenrecth(f, bero=None, bc=None):
04.     from iasubm import iasubm
05.     from iaopenrec import iaopenrec
06.     from iasecross import iasecross
07.     if bero is None:
08.         bero = iasecross()
09.     if bc is None:
10.         bc = iasecross()
11. 
12.     y = iasubm(f, iaopenrec( f, bero, bc))
13. 
14.     return y

Description

iaopenrecth creates the image y by subtracting the open by reconstruction of f, defined by the structuring elements bero e bc, of f itself.

Examples

Equation

Algorithm

function y=iaopenrecth_equ( f, bero, bc)
  y = iasubm(f,iaopenrec(f, bero, bc));