DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

AreaOpening

Morphological filter

SYNOPSIS

#include "dip_morphology.h"

dip_Error dip_AreaOpening ( grey, mask, out, filtersize, connectivity, closing )

DATA TYPES

integer, float

FUNCTION

The image grey will be filtered to remove local maxima (closing is DIP_FALSE) or local minima (closing is DIP_TRUE) with an area smaller than filtersize (in pixels).

Theoretically, the area opening can be written as the supremum of all the openings with each of the possible compact structuring elements of filtersize pixels. The connectivity parameter indicates which shapes are considered compact (i.e. all pixels are connected). See The connectivity parameter for more information.

ARGUMENTS

Data typeNameDescription
dip_ImagegreyGrey-value input image
dip_ImagemaskMask image for ROI processing
dip_ImageoutOutput image
dip_intfiltersizeSize of structuring element
dip_intconnectivityConnectivity
dip_BooleanclosingDIP_FALSE for area opening, DIP_TRUE for area closing

LITERATURE

L. Vincent, Grayscale area openings and closings, their efficient implementation and applications, Mathematical Morphology and Its Applications to Signal Processing, pages 22-27, 1993.

SEE ALSO

Opening, Closing, PathOpening, DirectedPathOpening, MorphologicalReconstruction