Erase masked regions from cryo-EM images
Project description
torch-cryoeraser
torch-cryoeraser is a Python package for erasing local regions of cryo-EM images.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torch_cryoeraser-0.1.0.tar.gz.
File metadata
- Download URL: torch_cryoeraser-0.1.0.tar.gz
- Upload date:
- Size: 396.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c45a700a0529ab0ac36e4d36f62014c1c15e6576244587ef8f5b32b70eab2dba
|
|
| MD5 |
d52186b47c0cb26cff7b24070846c7fd
|
|
| BLAKE2b-256 |
3a117f530874045e759cf8136cf1f7ac279ccaf5d0891f0690be0205d44a81a2
|
Provenance
The following attestation bundles were made for torch_cryoeraser-0.1.0.tar.gz:
Publisher:
ci.yml on teamtomo/torch-cryoeraser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torch_cryoeraser-0.1.0.tar.gz -
Subject digest:
c45a700a0529ab0ac36e4d36f62014c1c15e6576244587ef8f5b32b70eab2dba - Sigstore transparency entry: 203385218
- Sigstore integration time:
-
Permalink:
teamtomo/torch-cryoeraser@6e3925ad3b5b76cc74d61353f086af608496ed0e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/teamtomo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@6e3925ad3b5b76cc74d61353f086af608496ed0e -
Trigger Event:
push
-
Statement type:
File details
Details for the file torch_cryoeraser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: torch_cryoeraser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c7595be419b8dbcaa2554b22acaaf9445cfaf9175a0c7f5b102f7a723ba6557
|
|
| MD5 |
6705236e4f59a9681564ee7887ab30f1
|
|
| BLAKE2b-256 |
fff61023c19cf286a799e38bfa9c3208ad5d266aef4c50900cc32e20e955a484
|
Provenance
The following attestation bundles were made for torch_cryoeraser-0.1.0-py3-none-any.whl:
Publisher:
ci.yml on teamtomo/torch-cryoeraser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
torch_cryoeraser-0.1.0-py3-none-any.whl -
Subject digest:
6c7595be419b8dbcaa2554b22acaaf9445cfaf9175a0c7f5b102f7a723ba6557 - Sigstore transparency entry: 203385219
- Sigstore integration time:
-
Permalink:
teamtomo/torch-cryoeraser@6e3925ad3b5b76cc74d61353f086af608496ed0e -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/teamtomo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@6e3925ad3b5b76cc74d61353f086af608496ed0e -
Trigger Event:
push
-
Statement type: