Skip to main content

localthickness

Fast local thickness in 3D and 2D. Implements the algorithm described in our CVPR-W (CVMI) paper.

Installation

Install the module using pip install localthickness or clone the repository.

Use

import localthickness as lt

#  Make a binary test volume. 
B = lt.create_test_volume((100, 500, 400), sigma=15, boundary=0.001)

# Compute thickness and separation.
thickness = lt.local_thickness(B, scale=0.5)
separation = lt.local_thickness(~B, scale=0.5)

# Visualize.
import matplotlib.pyplot as plt
fig, ax = plt.subplots(1, 3, figsize=(10, 5))
ax[0].imshow(B[10])
ax[1].imshow(thickness[10], cmap=lt.black_plasma())
ax[2].imshow(separation[10], cmap=lt.white_viridis())

Paper

The fast local thickness method is described and evaluated in our contribution to the 8th IEEE Workshop on Computer Vision for Microscopy Image Analysis (CVMI), held in conjunction with the CVPR 2023 conference. Please cite our paper if you use the method in your work.

@inproceedings{dahl2023fast,
  title={Fast Local Thickness},
  author={Dahl, Vedrana Andersen and Dahl, Anders Bjorholm},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops},
  pages={4335--4343},
  year={2023}
}

Metadata

Release files for localthickness 0.1.3

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

Source distribution (sdist)

Source distribution for localthickness 0.1.3
File Size Uploaded Provenance Actions
localthickness-0.1.3.tar.gz 19.7 kB Without provenance Details for localthickness-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for localthickness 0.1.3
File Interpreter ABI Platform Actions
localthickness-0.1.3-py3-none-any.whl Python 3 none any Details for localthickness-0.1.3-py3-none-any.whl

Total release size: 39.7 kB

Release files / localthickness-0.1.3.tar.gz

Download URL localthickness-0.1.3.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a24f6f615952b3ab0cb9a3ad82f288da96b9690fde52e9493f4d895ec2e89e51
BLAKE2b-256 checksum
How to use checksums
4db84f20832ae822973a301a3cdadbde84978086a8b8f3016cf596b354f1a582
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Release files / localthickness-0.1.3-py3-none-any.whl

Download URL localthickness-0.1.3-py3-none-any.whl
Size 20.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee4c1d67fff657449fcaeb603345deb61e2437f86c76c67125f744ac054e08c9
BLAKE2b-256 checksum
How to use checksums
1f5c472f93439458d7a29b37dd6d9215cfc54fcd9d5f9fe005d5280c86163e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.12

Security for localthickness 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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