Skip to main content

Erase masked regions from cryo-EM images

Project description

torch-cryoeraser

License PyPI Python Version CI codecov

torch-cryoeraser is a Python package for erasing local regions of cryo-EM images.

result of using torch-cryoeraser

Image data in masked regions are replaced with noise matching local image statistics.

Installation

pip install torch-cryoeraser

Usage

import torch
import tifffile
from torch_cryoeraser import erase_region_2d

# load image and mask
image = tifffile.imread("image.tif")
mask = tifffile.imread("mask.tif")

# to torch tensor
image = torch.tensor(image)
mask = torch.tensor(mask)

# erase masked regions
erased_image = erase_region_2d(image=image, mask=mask)

for more info, please check the documentation.

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

torch_cryoeraser-0.5.2.tar.gz (127.7 kB view details)

Uploaded Source

Built Distribution

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

torch_cryoeraser-0.5.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file torch_cryoeraser-0.5.2.tar.gz.

File metadata

  • Download URL: torch_cryoeraser-0.5.2.tar.gz
  • Upload date:
  • Size: 127.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for torch_cryoeraser-0.5.2.tar.gz
Algorithm Hash digest
SHA256 fc6cb1cd613574cf3539429002c31eee97baf4444d8d27975ee985e3bbdc5a90
MD5 1c5dc79a60e51e4255dd63be8c5f2064
BLAKE2b-256 e1144511914176ac37c699640727402fe595c456f1948a83df910591c6508970

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_cryoeraser-0.5.2.tar.gz:

Publisher: deploy.yml on teamtomo/teamtomo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file torch_cryoeraser-0.5.2-py3-none-any.whl.

File metadata

File hashes

Hashes for torch_cryoeraser-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fcb1bf0fc9e58eb63bf19b3b362a5775ddf6551a7fb18f3bec2734a9edc0353d
MD5 a9dea4e6d07502c398761ebbcf3812b3
BLAKE2b-256 6fa50c88564ffc08aad5fd24945869321949e3a44cb671086d60b6d493acdf40

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_cryoeraser-0.5.2-py3-none-any.whl:

Publisher: deploy.yml on teamtomo/teamtomo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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