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.2rc1.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.2rc1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torch_cryoeraser-0.5.2rc1.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.2rc1.tar.gz
Algorithm Hash digest
SHA256 4b2b108b2f34d48072e585de958f5c72e439f526a9167323423c943851fcfaee
MD5 d3daa39cb059801a8997587c062fa904
BLAKE2b-256 4ec0e40fb5f7de87fd22172827547c2197631aad559cf4258a5ac962aa715f9d

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_cryoeraser-0.5.2rc1.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.2rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for torch_cryoeraser-0.5.2rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f787f2f4dd28bec21b7e178c156a049db8050d2be3127418c68d2ffc940b5de
MD5 aa3b2198f50df082573bf0ffc1d4681a
BLAKE2b-256 d95d37e3e5b9eabcf1267ffbd0dd978f1d15c99f21610750ffd08cbcbd184a82

See more details on using hashes here.

Provenance

The following attestation bundles were made for torch_cryoeraser-0.5.2rc1-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