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 details)
Built Distribution
File details
Details for the file cellcount-0.0.1.tar.gz
.
File metadata
- Download URL: cellcount-0.0.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01cc4bf8e042184caaed11a8b95baf2ceaaeb6c887262afd473f0457ca7a1c58 |
|
MD5 | c3eba1be0f9af90474a044c6310b8c0c |
|
BLAKE2b-256 | 2ff1d0aa379d28e116f1213c173e8370429e93a7977d9383643d5e47849d37af |
File details
Details for the file cellcount-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: cellcount-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d500819b19fd5326661dbab9526aea20d028d6a605937c599f0d835944a8e7 |
|
MD5 | de420800a67de43e0003e77c19f8771b |
|
BLAKE2b-256 | 06b637027921f13d5ae4168019826b1fe0bc7a78ef7ec032c3c7a152c3ed43d6 |