Skip to main content

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)
    where image is the image you want clustered in RGB format and k
    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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orchard_bouman-1.0.1.tar.gz (42.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orchard_bouman-1.0.1-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

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

Hashes for orchard_bouman-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1ebf2f1483a29011cacaf1be9a3cdc139ff9d396ca326274cc4a79f974ce5536
MD5 0aa0eb0b286db37ad6e0815d3281f632
BLAKE2b-256 acd14a72f20d9f0fe9e8a4560d923f924521de8ff7c55c3af3a5e7fccc4fd4f5

See more details on using hashes here.

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

Hashes for orchard_bouman-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 261576d262d60196b9c39972e5c3b99256965264ec41fb23680fa56eaabce734
MD5 7ccb826df99064e92ba41a1af44ab725
BLAKE2b-256 dd8137cb10ab65089b6065705361a9ff20387407a85c374655fcebfc998e59bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page