[Top] [Up] [Prev] [Next] [Up] [Tutorial] mmtutor V1.0 30abr2001

mmtop - Top of a set.


Synopsis
f = mmtop( A )
Input
A: Binary image (logical uint8).
Output
f: Gray-scale uint8 image.
Description
The top of a set is the function with values equal to the top of the set (upper values). It is the inverse of the subgraph.
Limitation
This implementation is restricted to 1-D gray scale functions.
Examples
f=[3 0 5 4 5 2 3 1 4];
sg=mmsg(f,6)

sg =
     0     0     0     0     0     0     0     0     0
     0     0     1     0     1     0     0     0     0
     0     0     1     1     1     0     0     0     1
     1     0     1     1     1     0     1     0     1
     1     0     1     1     1     1     1     0     1
     1     0     1     1     1     1     1     1     1
mmtop(sg)'

ans =
     3     0     5     4     5     2     3     1     4
Equation

equation

See Also
mmsg - Subgraph of a function.

[Top] [Up] [Prev] [Next] [Up] [Tutorial] Valid XHTML 1.0!
Copyright (c) 1998-20001 by SDC Information SystemsCopyright (c) 1998-20001 by SDC Information Systems