Skip to main content

lsd-lite

Simple LSD and affinity graph computation

Install: pip install lsd-lite

Tutorial: Open In Colab

Example:

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)

Metadata

Release files for lsd-lite 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lsd-lite 1.0.1
File Size Uploaded
lsd_lite-1.0.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lsd-lite 1.0.1
File Interpreter ABI Platform
lsd_lite-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / lsd_lite-1.0.1.tar.gz

Download URL lsd_lite-1.0.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
af3b775625b4ffa6b29fa486507bde478c9505902f68f873451b06206a93f79c
BLAKE2b-256 checksum
How to use checksums
85108141f7ec9bd2346f771fc28007e876973a13a91e4537d49964b9f83b68a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / lsd_lite-1.0.1-py3-none-any.whl

Download URL lsd_lite-1.0.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1fc25b8cbc745a5dc84304a33c266e126d260ee0b6e07c88414ef8a4f879cae9
BLAKE2b-256 checksum
How to use checksums
bc68619ed63d34e85c3ead350c67c8b5f13e9b76a42a00fcba1324f03c0fc0c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page