[maxaopen] [Up] [maxaopenmt] Attribute Openings

maxaopenth
Attribute opening top hat.

Synopsis

y = maxaopenth ( maxtree , attr , value , value2 = 0.0 )

Input

maxtree MaxTree

The MaxTree to be pruned.

attr String

Attribute: "area", "height", "volume", "bbox".

value Double

Attribute value.

value2 Double

Optional attribute value.

Default: 0.0 (0.0)

Output

y Image

The filtered top-hat image.

Description

This function is like maxaopen but returns the top-hat image (original image minus filtered image).

Examples

a = mmreadgray("cameraman.tif")
mt = maxtree(a)
mmshow(a)
#
c1 = maxaopenth(mt, "area", 350)
mmshow(c1)
#
c2 = maxaopenth(mt, "height", 50)
mmshow(c2)
#
c3 = maxaopenth(mt, "volume", 5000)
mmshow(c3)
#
c4 = maxaopenth(mt, "bbox", 50, 50)
mmshow(c4)
        
a c1
c2 c3
c4

[maxaopen] [Up] [maxaopenmt]