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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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