label matrix coloring algorithm
Project description
ncolor
Fast remapping of intance labels 1,2,3,...,M to a smaller set of repeating, disjoint labels, 1,2,...,N. The four-color-theorem guarantees that at most four colors are required for any 2D segmentation/map, but this algorithm will opt for 5 or 6 to give an acceptable result quickly. Also works for 3D labels (<8 colors typically required) and perhaps higher dimensions as well.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ncolor-1.0.1.tar.gz
(56.5 kB
view details)
Built Distribution
File details
Details for the file ncolor-1.0.1.tar.gz
.
File metadata
- Download URL: ncolor-1.0.1.tar.gz
- Upload date:
- Size: 56.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa759a83cb4718a4f75b588144e56cbc4fe6b27d96d4a71a218a50c3360628f3 |
|
MD5 | 7cb9351716fbc82df2dd2a79982ffc75 |
|
BLAKE2b-256 | b8c23195fff92a487d0e0b6dd215bf5a3dc54c8919fb888658d33d557a5740ae |
File details
Details for the file ncolor-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ncolor-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 746c9119e23b227b6f8328161112866c8945cbe935f2616f4b4017502e7f5c99 |
|
MD5 | 2d229a43dc74ddb3ff526ab0c45a131a |
|
BLAKE2b-256 | 991fb683eb4917c51d98da6aa4ac4c457700a7892bcdfc86269b2bee012684f7 |