Metadata-Version: 2.4
Name: lsd-lite
Version: 1.0.1
Summary: Simple LSD and affinity graph computation
Author-email: Arlo Sheridan <arlo@e11.bio>, Jan Funke <funkej@janelia.hhmi.org>, William Patton <wllmpttn24@gmail.com>
License: MIT
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: funlib.geometry>=0.3
Requires-Dist: scipy>=1.15.3
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Requires-Dist: pytest-cov>=5.0; extra == "dev"
Requires-Dist: ruff>=0.6; extra == "dev"
Requires-Dist: ty>=0.0.1a21; extra == "dev"
Provides-Extra: docs
Requires-Dist: matplotlib>=3.10.7; extra == "docs"
Requires-Dist: scikit-image>=0.25.2; extra == "docs"
Dynamic: license-file

# lsd-lite
Simple LSD and affinity graph computation

Install: `pip install lsd-lite`

Tutorial: [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/funkelab/lsd-lite/blob/main/lsd_lite_tutorial.ipynb)

Example:

```py
from lsd_lite import get_affs, get_lsds

# 2d short range affs example
affs = get_affs(segmentation, neighborhood=[[1,0],[0,1]])

# 2d long range affs example
affs = get_affs(
    segmentation,
    neighborhood=[
      [1,0],
      [0,1],
      [3,0],
      [0,3],
      [6,0],
      [0,6]
    ]
)

# 3d long range adds example
affs = get_affs(
    segmentation,
    neighborhood=[
      [1,0,0],
      [0,1,0],
      [3,0,0],
      [0,3,0],
      [0,0,3],
      [6,0,0],
      [0,6,0],
      [0,0,6]
    ]
)

# lsds example
lsds = get_lsds(segmentation, sigma=10, downsample=2)
```
