Skip to main content

bioimageflow-segmentation-tools

Segmentation-focused tool package for BioImageFlow.

Tools

  • Cellpose3: Cellpose v3 pretrained model wrapper.
  • StarDistSegmenter: StarDist 2D pretrained model wrapper.
  • ThresholdSegment: threshold an intensity image and label connected foreground objects.
  • OtsuThresholdSegment: compute a global Otsu threshold and label foreground objects.
  • LocalThresholdSegment: compute a Sauvola local threshold and label foreground objects.
  • WatershedSegment: split foreground regions from marker labels or connected components.
  • DistanceWatershedSegment: split foreground with marker-free distance-transform watershed.
  • SplitTouchingObjects: split clumped labels using distance-transform watershed.
  • FilterLabels: remove labels by area, border contact, intensity, and shape constraints.
  • PostprocessLabels: remove small labels and relabel label images sequentially.

Heavy model dependencies are declared in isolated EnvironmentSpec objects and imported only inside process_row. Importing this package does not require Cellpose, TensorFlow, StarDist, or other model packages to be installed in the main process. Cellpose3, CellposeSAM, and StarDistSegmenter lazily keep one model per worker-side tool instance. Repeated calls with the same model selection reuse the weights; changing model_type or model_name replaces the cached model, and clear_model_cache() releases it explicitly. Applications can invalidate remote worker caches by stopping the corresponding Wetlands environment.

Example

from bioimageflow_core import Arguments
from bioimageflow_segmentation_tools import ThresholdSegment

segment = ThresholdSegment()
result = segment.process_row(
    Arguments(
        input_image="input.tif",
        threshold=128.0,
        labels="labels.tif",
        above=True,
    )
)

Workflow graph construction with segment(...) requires installing the main-process bioimageflow orchestrator alongside this package.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bioimageflow_segmentation_tools-0.1.6.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bioimageflow_segmentation_tools-0.1.6-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file bioimageflow_segmentation_tools-0.1.6.tar.gz.

File metadata

  • Download URL: bioimageflow_segmentation_tools-0.1.6.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bioimageflow_segmentation_tools-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3aafe77c826c87f83998571a7b58a413201864ba1786ee74657f6e16a9265ccb
MD5 473b0dd506f4ca307c1513efff6143d0
BLAKE2b-256 96536cac5c7935fe65b84251a8a05cfa4407d37ac72b942d32aa983ca5d388d7

See more details on using hashes here.

File details

Details for the file bioimageflow_segmentation_tools-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: bioimageflow_segmentation_tools-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for bioimageflow_segmentation_tools-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a306c29188d334062236e4cab926f7bfed75b54e4753a0fd3a155c5fde465425
MD5 cc2cbd3c7e53189a3db208ab7572c401
BLAKE2b-256 e34dc6c27df1f37b551f32d88c826329ad584a381042041ac12ad878ff9e865e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.0

2 files

This release

0.1.6 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page