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

SmallObjectsRemove

Remove small objects from an image

SYNOPSIS

#include "dip_measurement.h"

dip_Error dip_SmallObjectsRemove ( in, out, threshold )

DATA TYPES

integer

FUNCTION

This function removes from the labeled image in those objects whose size (measured in the number of pixels) is smaller than threshold.

ARGUMENTS

Data typeNameDescription
dip_ImageinInput image
dip_ImageoutOutput image
dip_intthresholdMinimum object size

SEE ALSO

Measure, ObjectToMeasurement, Label