Skip to main content

A simple plugin to remove overlapping segmentations from images

Project description

PARSEG

Binder Python 3.11 Commit activity GitHub

PARSEG (PAralellised Refinement of SEGmentations) combines segmentation masks and filters overlapping objects based on colocalization statistics, such as percent overlap.


This napari plugin was generated with Cookiecutter using @napari's [cookiecutter-napari-plugin] template.

Overview

By leveraging Dask, PARSEG filters overlapping segmentations masks in a computationally efficient manner by processing individual 2D slices in parallel.

There are two different ways to interact with PARSEG and use it for different objectives:

  • As a napari plugin for graphical user interaction
  • As a Python API to allow users to integrate PARSEG tools into their own custom workflows

Installation

You can install napari-segmentation-overlap-filter via pip:

pip install napari-segmentation-overlap-filter

Getting Started

Napari Plugin

  1. Download the example dataset images
  2. Start napari and open both images as separate layers
  3. Convert the layers from an Image Layer to a Labels Layer by right-clicking on the layer
  4. Open the plugin with Plugins > Segmentation Overlap Filter and the widget will appear on the right
  5. Select the two segmentation masks you'd like to combine using the drop down and menu
  6. Drag the slider to set percent overlap allowed
  7. Click Run
  8. Optionally, export the overlap dataframe as a csv file

Python API

This example notebook shows how you can integrate the Python API into your own workflow for filtering and combining overlapping segmentation masks

Issues

If you encounter any problems, please file an issue along with a detailed description.

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

Built Distribution

File details

Details for the file napari_segmentation_overlap_filter-0.0.1.tar.gz.

File metadata

File hashes

Hashes for napari_segmentation_overlap_filter-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0df915f2b6d9a3312d50ab0f306baaa6957c0ebc6fef0e34669953b213a87a10
MD5 c28bb95a747f4117e9b1d5eb144f776a
BLAKE2b-256 aec129ff63966e2195a2705948855b0f89800796a2da9680f3cdc0b74723910c

See more details on using hashes here.

File details

Details for the file napari_segmentation_overlap_filter-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for napari_segmentation_overlap_filter-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 605836b8376093325e6ceb301186b70831ba6a18ed9de1536afcdeabee5905b9
MD5 d3ecb4c1bb227952eb45a7732a221f86
BLAKE2b-256 67d25ac5bdff3d481db3aa9bf622052fc7d6feca7bca69ac6800315c853a0e13

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