Socket
Book a DemoInstallSign in
Socket

rle-repair

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rle-repair

RLE repair

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

rle-repair

Volume repair and validation for narrow band level sets. This is mainly used internally, but can also be useful for doing certain volume processing operations if you know what you are doing. The main purpose of this code is to take as input disorganized collections of boundary points and then convert them into valid narrow band representations. It can also be used to remove extraneous boundary points form a level set, and recover missing surface voxels.

Again, I must stress that this is mostly an internal library and you should not use it unless you know what you are doing.

Installation

NPM:

npm install rle-repair

Usage

You can import the repair module like so:

var repair = require("rle-repair");

All the repair methods work on VolumeBuilder objects. If you give them a regular volume, they will fail.

repair.resort(volume)

Rearranges the runs of volume so that they are in proper sorted order. This is done in place.

repair.resurface(volume)

Adds any missing surface runs to the volume.

repair.removeDuplicates(volume)

Removes extra/redundant voxels. This can also be used to trivially convert a voxel array into an rle volume, but it is not recommended.

repair.fullRepair(volume)

Calls all of the above methods in sequence.

Credits

(c) 2013 Mikola Lysenko. BSD License

Keywords

rle

FAQs

Package last updated on 14 Feb 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts