[mmmaxpropagate] [Up] [mmmaxaopenth] Attribute Openings

mmmaxaopen
Attribute opening.

Synopsis

function y = mmmaxaopen ( 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 Filtered Image.

Description

This function implements attribute openings and returns the filtered image. The following filters are implemented:

Examples

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

[mmmaxpropagate] [Up] [mmmaxaopenth]