Skip to content

mikolalysenko/rle-morphology

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rle-morphology

Mathematical morphology operators for narrow band level sets. This is part of the rle collection of libraries.

Installation

Via npm:

npm install rle-morphology

Demo

Here:

http://mikolalysenko.github.com/rle-morphology/example/www/index.html

API

There are four different functions exported by this library.

dilate(volume, structuring_element)

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 rle-stencils.

erode(volume, structuring_element)

Erodes the volume by the element. The basic input and behavior is consistent with dilate.

opening(volume, structuring_element)

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)

closing(volume, structuring_element)

Performs a morphological closing. This removes any tiny holes or cracks in your shape. It is equivalent to:

erode(dilate(volume, element), element)

Credits

(c) 2013 Mikola Lysenko. BSD License

About

Mathematical morphology operations for narrow band level sets

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published