Skip to main content

Simple LSD and affinity graph computation

Project description

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)

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

lsd_lite-1.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

lsd_lite-1.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file lsd_lite-1.0.1.tar.gz.

File metadata

  • Download URL: lsd_lite-1.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lsd_lite-1.0.1.tar.gz
Algorithm Hash digest
SHA256 af3b775625b4ffa6b29fa486507bde478c9505902f68f873451b06206a93f79c
MD5 ea34bd0db2b3868c19e65be1bb28db5e
BLAKE2b-256 85108141f7ec9bd2346f771fc28007e876973a13a91e4537d49964b9f83b68a2

See more details on using hashes here.

File details

Details for the file lsd_lite-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: lsd_lite-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lsd_lite-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc25b8cbc745a5dc84304a33c266e126d260ee0b6e07c88414ef8a4f879cae9
MD5 eb20aeed9ab7643740aa918cdd689b3a
BLAKE2b-256 bc68619ed63d34e85c3ead350c67c8b5f13e9b76a42a00fcba1324f03c0fc0c8

See more details on using hashes here.

Supported by

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