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.countCells(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.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for cellcount-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73c8584511df6ce0625b82b100262f3ab74af2f0505e1e9042a3e87d2c1a089b |
|
MD5 | 1eebad5faf418478b9bf8f8a3aabf801 |
|
BLAKE2b-256 | 4a8ef2e59465e327e2a6c0c9176011067cce9581c83b8b152e2776a77552313b |