-
Notifications
You must be signed in to change notification settings - Fork 1
Morphology
This utility allows you to apply a morphology filter to a binary image or volume. These filters are non linear filters which "convolve" an structuring element with the binary image. Opening is usually used to remove small white areas, while closing can be used to remove small black areas.
In this Http://www.cee.hw.ac.uk/hipr/html/matmorphLink mathematical morphology concepts are found, and in this one a lot of sample applications.
$ morphology -i ...
Parameters
-
__OR__
Apply a morphology filter to a single file -
__OR__
If no output file is given, then the input one is rewritten -
`` Apply a morphology filter to a bunch of files
-
__OR__
If no output extension neither root are given, then the input ones are rewritten -
`` Do not produce on screen information
-
`` Dilate an image or volume
-
`` Erode an image or volume
-
`` Opening (
erosion + dilation
) of a volume or image -
`` Closing (
dilation + erosion
) of a volume or image -
`` For 2D valid neighbourhood are 4 or 8 (by default), and for 3D: 6, 18 (by default) or 26
-
-size [size
1] = Size of the structuring element (box) -
-count [c
0] = Minimum number of neighbours with a distinct value to apply the filter -
`` Sharpening with width=w and strength=s. Suggested values (w=1 or 2), s=(0.1-1). The sharpening algorithm is described at Schavemaker, J. G. M.; Reinders, M. J. T.; Gerbrands, J. J. & Backer, E. Image sharpening by morphological filtering Pattern recognition, 2000, 33, 997-1012. This operation is only implemented for volumes.
Opening a single image, overwriting input images
$ morphology -i g0ta00001.xmp -ope
Closing a sel file, a new extension is given to output images, ie, if input images are of the like ofg0ta0001.xmp
, then the output ones will beg0ta0001.cls
.
$ morphology -i g0ta.sel -oext cls -clo
Sharpening a 3D volume
$ morphology -i volume.vol -sharpen 1 0.1
--Main.AlfredoSolano - 18 Jan 2007