Skip to main content

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

Project description

Deinterlace

Coverage 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.3.tar.gz (13.1 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.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deinterlacing-1.0.3.tar.gz
Algorithm Hash digest
SHA256 79e234bbf743067d516b789b4640ec4ded0232b868ae3bfbc8e88a0110576ec1
MD5 973fbcc201a7b549afc7adf240abf320
BLAKE2b-256 e5bc5f1b702d710eb8aa976198a29b3014e13f6ad6944f5f623a4f42dc599ffb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deinterlacing-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cd2e4f51f87d7b258a70b7189d4e114ad8c208c72e6802a7230ee9d52a54e8d5
MD5 6ede0ac3b235928f9dee0829b521540a
BLAKE2b-256 762ac984ca097a38473b54fa515886e2e8f28e82fac26b42d88e25ed29454941

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