Woolz Image Processing  Version 1.7.0
Name
WlzSizeSelect - selects components of an object's domain on the basis of area.
Synopsis
WlzSizeSelect [-h] [-v] -a<mesh_area> -c<conn> -H -m
              [-f] [-g] [-h] [-i] [-l] [-L] [-p] [-M #]
              [-s #] [-m #] [-c #,#,#] [-C #,#,#] <in bib file>
Options
-h Prints usage information.
-v Verbose output.
c Conectivity.
-H Select from the domain complement within the bounding box, default - use the foreground.
-m Keep domains <= area, the default is to keep domains > area.
-M Maximum number of parts to select from.
Description
WlzSizeSelect segments an object and select parts according to area, either keeping all parts <= a given area or > the area. The operation is applied by default to the object domain but can be applied to the domain complement in which case the size filter is applied to the holes. If the input object is 3D then the filter is applied plane-by-plane.
Examples
WlzSizeSelect -c8 < in.wlz > out.wlz
Select all foreground objects, defined by segmentation with connectivity 8 and area > 5 pixels (i.e. discard small blobs with area <= 5).
WlzSizeSelect -a10 -c4 -m < in.wlz > out.wlz

Select all foreground objects, defined by segmentation with connectivity 4 and area <= 10 pixels (i.e. collect small blobs with area <= 10).

WlzSizeSelect -a10 -c4 -H -m < in.wlz > out.wlz

Select all background objects, defined by segmentation with connectivity 4 and area <= 10 pixels (i.e. collect holes with area <= 10).

File
WlzSizeSelect.c
See Also
WlzIntro(1)