Function iahmin

Synopse

Remove basins with contrast less than h.

  • y = iahmin(f, h=1, Bc=iasecross())
    • y: Image
    • f: Image
    • h: Double Contrast parameter.
    • Bc: Structuring Element Structuring element (connectivity).

Description

iahmin sup-reconstructs the gray-scale image f from the marker created by the addition of the positive integer value h to f, using the connectivity Bc. This operator removes connected basins with contrast less than h. This function is very userful for simplifying the basins of the image.

Examples

Example 1

[[10  4  6 18 16 15 10]
 [10  9  6 18  6  6 10]
 [10  9  9 15  5  9 10]
 [10 10 10 10 10 10 10]]

Example 2

1. from ia870 import iaregmin
2. 
3. 
4. f = mmreadgray('r4x2_256.tif')
5. adshow(f)
6. fb = iahmin(f,70)
7. adshow(fb)
8. adshow( iaregmin(fb))

Equation

See Also