[mmMaxpropagate] [Up] [mmMaxaopenth] Attribute Openings

mmMaxaopen
Attribute opening.

Synopsis

Image mmMaxaopen ( const MaxTree& maxtree , const String& attr , const Double& value , const Double& 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

Output

y Image

Filtered Image.

Description

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

Examples

Image a = mmReadgray("cameraman.tif");
MaxTree mt = mmMaxtree(a);
mmShow(a);
//
Image c1 = mmMaxaopen(mt, "area", 350);
mmShow(c1);
//
Image c2 = mmMaxaopen(mt, "height", 50);
mmShow(c2);
//
Image c3 = mmMaxaopen(mt, "volume", 5000);
mmShow(c3);
//
Image c4 = mmMaxaopen(mt, "bbox", 50, 50);
mmShow(c4);
        

a c1
c2 c3
c4

[mmMaxpropagate] [Up] [mmMaxaopenth]