# mmcloserecth
Close-by-Reconstruction Top-Hat.

## Synopsis

y = mmcloserecth( f, bdil = None, bc = None )

Implemented in Python.

### Input

f | Image Gray-scale (uint8 or uint16) or binary image.
bdil | Structuring Element (dilation) Default: `None` (3x3 elementary cross)
bc | Structuring Element ( connectivity) Default: `None` (3x3 elementary cross)

### Output

y | Image Gray-scale (uint8 or uint16) or binary image.

## Description

mmcloserecth creates the image `y` by subtracting the image `f` of its closing by reconstruction, defined by the structuring elements `bc` and `bdil`.

## Examples

    >>> a = mmreadgray('danaus.tif')

    >>> mmshow(a)

    >>> b = mmcloserecth(a,mmsebox(4))

    >>> mmshow(b)

a | b |

## Equation

## Source Code

    def mmcloserecth(f, bdil=None, bc=None):
        if bdil is None: bdil = mmsecross()
        if bc is None: bc = mmsecross()
        y = mmsubm(mmcloserec(f,bdil,bc), f)
        return y

## See also

mmfreedom | Control automatic data type conversion.
mmopenrecth | Open-by-Reconstruction Top-Hat.
mmcloseth | Closing Top Hat.
mmsuprec | Sup-reconstruction.
mmclose | Morphological closing.

[`mmcbisector`] [Up] [`mmcloseth`] |
Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center.