Count the number of contiguous regions in a binary array
Project description
Cell Count
This package takes a binary array, and counts the number of seperate objects in the array.
Installation
Run the following to install:
pip install cellcount
Usage
import cellcount as cc
import numpy as np
img = np.random.randint(2, size=(5,5))
# Count the number of seperate cells
num_of_cells = cc.cellCount(img)
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
cellcount-0.0.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for cellcount-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d500819b19fd5326661dbab9526aea20d028d6a605937c599f0d835944a8e7 |
|
MD5 | de420800a67de43e0003e77c19f8771b |
|
BLAKE2b-256 | 06b637027921f13d5ae4168019826b1fe0bc7a78ef7ec032c3c7a152c3ed43d6 |