Skip to main content

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

Project description

Deinterlacing

image License: MIT Ruff Coverage Status Documentation Status

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
  • Sub-Pixel: Pixel & Sub-Pixel registration available

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.4.tar.gz (14.4 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.4-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deinterlacing-1.0.4.tar.gz
Algorithm Hash digest
SHA256 a398250af4557d38630d9e2195c4fa0e55e71fac1e3695d7c1ce17a1b3a35dee
MD5 33fcc85ee919278f17834aadd3af9a24
BLAKE2b-256 1e26ba6c66a5b7f438afae94c1e0cf0766c5ba92fb8c3dd6a9cff446cbebf1a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deinterlacing-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a63f1492a2be60844271c860e61d22d5c04b87be3cbd718096ce86d0700cedca
MD5 2c1fae264a4d444404731068449e5268
BLAKE2b-256 e0cafc7b3f9114f1d6a3b55211d0a014942c602c403a7e020c818d5abe0bbf4a

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