| [mmhmin] [Up] [mmhmax] | Connected Operators |
Implemented in Python.
| f | Image Gray-scale (uint8 or uint16) image. |
| v | Double Volume parameter. Default:
|
| Bc | Structuring Element Structuring element (connectivity). Default:
|
| y | Image Gray-scale (uint8 or uint16) or binary image. |
mmvmax This operator removes connected domes with volume less than
v. This function is very similar to
mmhmax, but instead of using a gray scale criterion (contrast) for the dome, it uses a volume criterion.
>>> a = uint8([
[4, 3, 6, 1, 3, 5, 2],
[2, 9, 6, 1, 6, 7, 3],
[8, 9, 3, 2, 4, 9, 4],
[3, 1, 2, 1, 2, 4, 2]])
>>> print mmvmax(a,10,mmsebox())
[[4 3 6 1 3 5 2] [2 6 6 1 5 5 3] [6 6 3 2 4 5 4] [3 1 2 1 2 4 2]]
>>> f = mmreadgray('astablet.tif')
>>> mmshow(f)
>>> fb = mmvmax(f,80000)
>>> mmshow(fb)
>>> mmshow(mmregmax(fb))
![]() |
![]() |
|
| f | fb |
![]() |
|
| mmregmax(fb) |
def mmvmax(f, v=1, Bc=None):
if Bc is None: Bc = mmsecross()
print 'Not implemented yet'
return None
return y
| mmsebox | Create a box structuring element. |
| mmsecross | Diamond structuring element and elementary 3x3 cross. |
| mmfreedom | Control automatic data type conversion. |
| mmhmin | Remove basins with contrast less than h. |
| mmareaopen | Area opening |
| [mmhmin] [Up] [mmhmax] | |
| Copyright (c) 2003, Roberto A. Lotufo, UNICAMP-University of Campinas; Rubens C. Machado, CenPRA-Renato Archer Research Center. |