Skip to main content

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


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 details)

Uploaded Source

Built Distribution

cellcount-0.0.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file cellcount-0.0.2.tar.gz.

File metadata

  • Download URL: cellcount-0.0.2.tar.gz
  • Upload date:
  • Size: 3.0 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

Hashes for cellcount-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bc5b5f9a39aa14c0b8ff1d0cb4b9977d7129cfe6adc41b601ce22316573a2351
MD5 adc6a29ebb7711c58803c13224a241e8
BLAKE2b-256 b7d3f0a59e7d95e55ab13fee2158fc63c512b9a6f4b717def7a5e312e89963f2

See more details on using hashes here.

File details

Details for the file cellcount-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cellcount-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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

Hashes for cellcount-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 73c8584511df6ce0625b82b100262f3ab74af2f0505e1e9042a3e87d2c1a089b
MD5 1eebad5faf418478b9bf8f8a3aabf801
BLAKE2b-256 4a8ef2e59465e327e2a6c0c9176011067cce9581c83b8b152e2776a77552313b

See more details on using hashes here.

Supported by

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