Woolz Image Processing  Version 1.7.5
WlzBlobsToMarkers
Name
WlzBlobsToMarkers - creates a new domain object with a marker at the location of each separate component of the input domain object.
Synopsis
WlzBlobsToMarkers [-c#] [-g#] [-G#] [-h] [-m#] [-n#] [-N#] [-o<output object>]
                  [-r#]] [-x#] [<input object>]
Options
-c Connectivity: 4, 6, 8, 18 or 26 connected (default 8 for 2D domains and 26 for 3D domains).
-g Grey value for marker. This is a single number for all except RGBA (colour) grey values. RGBA components must be separated by by a comma.
-G Grey value type for marker specified by letter: v no grey values (default), u unsigned byte grey values, s short grey values, i int grey values, f int grey values, d int grey values and r RGBA (red, green, blue, alpha) grey values.
-h Help, prints usage message.
-m Marker type specified by a number: 1 circle/sphere (default) and 2 square/cube
-n Threshold minimum area/volume of blob for a marker (default >= 1)
-N Threshold maximum area/volume of blob for a marker. If zero there is no upper limit. (default 0).
-o Output object file.
-r Marker radius. Attempts to keep the same area/volume if zero. (default 0).
-x Maximum number of separate regions in the object (default 1024).
Description
Reads a spatial domain object and replaces each spatialy separate region with a marker placed at the centre of mass of the region. All files are read from the standard input and written to the standard output unless filenames are given. If grey values are required then the grey value type must be set before the actual grey value.
Example
WlzBlobsToMarkers -o out.wlz -n 4 -r 10 -G r -g 200,100,0,255 in.wlz
A spatial domain object is read from the file in.wlz and each spatialy separate region of the domain is replaced by a circle or sphere of radius 10 (pixels). All small regions with less than four (pixels voxels) is ignored. The output object (with grey values set to orange) is written to the file out.wlz.
File
WlzBlobsToMarkers.c
See Also
WlzIntro(1) WlzLabel(3)