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.5.tar.gz (15.2 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.5-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for deinterlacing-1.0.5.tar.gz
Algorithm Hash digest
SHA256 693689625ef996f90b4dbb7e33f8a68dbc82fde717f47186b4b33534c345c6c3
MD5 efb07fdaf38a0388043ca1f12a0362a5
BLAKE2b-256 27797dad338a7c71636a62e0e25657d1341b5b06ec9fa847f91361f2efadeef2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for deinterlacing-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aee84c31810ae0c01fd3df7fb9e33a380e158c2282eedeeb7c3cff706d31049c
MD5 9f5c6aad80801d8fd3e0b4f9f0c39aa1
BLAKE2b-256 9f8bb2d73162bceb9be38797ac81de70c5a918b09b27083036ea3a632f95b439

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