Skip to main content

A python library for deinterlacing images collected using resonant-scanning microscopes.

Project description

Deinterlace Resonant-Scanned Images

This python module can be used to correct the misalignment between forward and backward-scanned lines collected by resonance-scanning microscopes.

Features

  • GPU Acceleration: Optional CuPy backend for increased performance
  • Batch Processing: Supports block-wise processing to reduce memory constraints.
  • Pooling Noisy Data: Deinterlacing can be applied to pooled-pixels for improved performance on noisy or sparse images.
  • Handles Instability: Supports processing individual frames while autocorrection methods applied during acquisition stabilize

Installation

The repository is available on PyPI and can be installed using your preferred package manager. For example: pip

pip install deinterlacing

uv

uv add deinterlacing

Dependencies

  • Boltons
  • CuPy (Optional)
  • NumPy
  • Pydantic
  • TQDM

Example

from deinterlacing import deinterlace
import numpy as np

# Load your images
images = np.load("my_images.npy")

# Deinterlace the images
deinterlace(images)

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

deinterlacing-1.0.2.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

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

deinterlacing-1.0.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file deinterlacing-1.0.2.tar.gz.

File metadata

  • Download URL: deinterlacing-1.0.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.12

File hashes

Hashes for deinterlacing-1.0.2.tar.gz
Algorithm Hash digest
SHA256 fe7718ac693b7106038c2d2aa6162063e5fd23a26f36e626aeaa0560252711d0
MD5 7503affa77a691b1abcae366a1a9771c
BLAKE2b-256 7cef9fc88cb9fec76fc532eaeeb47412e0c717ce091f698721a31393cca4ebbc

See more details on using hashes here.

File details

Details for the file deinterlacing-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for deinterlacing-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff06bf3f8b3e3f827dbf854f7b4a887eb998879ca5f1bd4f30f0bb1a79df993
MD5 a8bba56b418ae91cb8ca668b0a544a2d
BLAKE2b-256 b67fba075124d23bc5107ad86107f8234bc3b598ad5b88145b07d3dceec07add

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