Python implementation of Orchard Bouman clustering using NumPy
Project description
orchard_bouman
Python implementation of unweighted Orchard Bouman clustering
Requirements:
- NumPy
Developed in Python 3.10, but anything over Python 3.7 should work
Installation:
pip install orchard-bouman
Usage:
Once your image is created as a NumPy array, simply use:
ob = OrchardBouman(image, k)
whereimageis the image you want clustered in RGB format andk
is the number of times to split nodes. The final number of nodes = 2^k.- This will return the split node objects within a list accessible by
ob.nodes - A clustered color image can be generated by
ob.construct_image()
Considerations:
This package does not handle image reading and saving to keep it versatile.
Because all images are treated as a NumPy array, it is recommended to
read in images using OpenCV, as they are natively NumPy arrays.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orchard_bouman-1.0.1.tar.gz.
File metadata
- Download URL: orchard_bouman-1.0.1.tar.gz
- Upload date:
- Size: 42.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ebf2f1483a29011cacaf1be9a3cdc139ff9d396ca326274cc4a79f974ce5536
|
|
| MD5 |
0aa0eb0b286db37ad6e0815d3281f632
|
|
| BLAKE2b-256 |
acd14a72f20d9f0fe9e8a4560d923f924521de8ff7c55c3af3a5e7fccc4fd4f5
|
File details
Details for the file orchard_bouman-1.0.1-py3-none-any.whl.
File metadata
- Download URL: orchard_bouman-1.0.1-py3-none-any.whl
- Upload date:
- Size: 30.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
261576d262d60196b9c39972e5c3b99256965264ec41fb23680fa56eaabce734
|
|
| MD5 |
7ccb826df99064e92ba41a1af44ab725
|
|
| BLAKE2b-256 |
dd8137cb10ab65089b6065705361a9ff20387407a85c374655fcebfc998e59bb
|