Mathematical morphology operators for narrow band level sets. This is part of the [rle] collection of libraries.
npm install rle-morphology
There are four different functions exported by this library.
This dilates a volume by the structuring element. The structuring element is represented by a flat list of points, for example the output from one of the methods in
Erodes the volume by the element. The basic input and behavior is consistent with
Performs a morphological opening. This is useful if you want to remove tiny features your shape. It is equivalent to doing:
dilate(erode(volume, element), element)
Performs a morphological closing. This removes any tiny holes or cracks in your shape. It is equivalent to:
erode(dilate(volume, element), element)
(c) 2013 Mikola Lysenko. BSD License