[mmmaxaopen] [Up] [mmmaxaopenmt] Attribute Openings

mmmaxaopenth
Attribute opening top hat.

Synopsis

function y = mmmaxaopenth ( maxtree , attr , value , value2 )

Input

maxtree MaxTree The MaxTree to be pruned.
attr String Attribute: "area", "height", "volume", "bbox".
value Double Attribute value.
value2 Double

Default: 0.0

Optional attribute value.

Output

y Image The filtered top-hat image.

Description

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

Examples

a = mmreadgray('cameraman.tif');
mt = mmmaxtree(a);
mmshow(a);
%
c1 = mmmaxaopenth(mt, 'area', 350);
mmshow(c1);
%
c2 = mmmaxaopenth(mt, 'height', 50);
mmshow(c2);
%
c3 = mmmaxaopenth(mt, 'volume', 5000);
mmshow(c3);
%
c4 = mmmaxaopenth(mt, 'bbox', 50, 50);
mmshow(c4);
a c1
c2 c3
c4

[mmmaxaopen] [Up] [mmmaxaopenmt]