label matrix coloring algorithm
Project description
ncolor
Fast remapping of intance labels 1,2,3,...,M to N repeating, disjoint labels, 1,2,3,...,N. The four-color-theorem guarantees that at most four colors is 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.0.tar.gz
(56.5 kB
view details)
Built Distribution
File details
Details for the file ncolor-1.0.0.tar.gz
.
File metadata
- Download URL: ncolor-1.0.0.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 | 9a916e1c4299a5e9d875becc4f9d3f34ac8f6a209934b8aaf099b817ce32c7dc |
|
MD5 | 0974645cf467465aeec22d1aea8c0f53 |
|
BLAKE2b-256 | 5e4c26e090ffa177c7fa2ea037f7e953a16541e636b097ca6f8c9f9629ee51e8 |
File details
Details for the file ncolor-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ncolor-1.0.0-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 | fb4232acbe9f9e2f4e190fb503ec0257c1674025d41ddc0d120d2c8b265a413a |
|
MD5 | ba66925346b89577912d92a0a8da6a9c |
|
BLAKE2b-256 | f204fdb9f9177e5327c539a96ae8c9d6fe1eee0ed3df04fd0e13bfde2ac73677 |