Skip to main content

Mixture model segmentation

Project description

Python package

Fast Mixture Model Segmentation

Fast mixture model segmentation used in Boone and Andrews labs

Python requirements

  • Numpy
  • Cython
  • scikit-image

Installation

Create a virtual environment (optional)

$ virtualenv -ppython3 segmentation-env
$ source segmentation-env/bin/activate

Install python requirements (needed to build the package)

$ pip install numpy cython

Install our library (pulls in all other dependencies)

$ pip install segmentation

Usage example

import segmentation as seg
from skimage.io import imread

image = imread('./001001000.tiff', plugin='tifffile')[1]  # Read channel 1 of a tiff/flex 
im = seg.blur_frame(image) # gaussian blur
segmented, _ = seg.mixture_model(im, debug=True) # second return argument is currently unused
labels = seg.watershed(im, segmented)

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

segmentation-0.2.2.tar.gz (133.0 kB view hashes)

Uploaded Source

Built Distributions

segmentation-0.2.2-cp39-cp39-manylinux2010_x86_64.whl (475.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

segmentation-0.2.2-cp39-cp39-manylinux1_x86_64.whl (475.4 kB view hashes)

Uploaded CPython 3.9

segmentation-0.2.2-cp38-cp38-manylinux2010_x86_64.whl (491.2 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

segmentation-0.2.2-cp38-cp38-manylinux1_x86_64.whl (491.2 kB view hashes)

Uploaded CPython 3.8

segmentation-0.2.2-cp37-cp37m-manylinux2010_x86_64.whl (449.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

segmentation-0.2.2-cp37-cp37m-manylinux1_x86_64.whl (449.8 kB view hashes)

Uploaded CPython 3.7m

segmentation-0.2.2-cp36-cp36m-manylinux2010_x86_64.whl (450.1 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

segmentation-0.2.2-cp36-cp36m-manylinux1_x86_64.whl (450.1 kB view hashes)

Uploaded CPython 3.6m

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