Python image augmentation
Project description
Pyimgaug3d
A 3D GPU augmentation library. This library is work-in-progress and will be constantly updated with more augmentation methods. The current supported ones are grid warp 3D, flip 3D and identity. As all the augmentation methods are implemented in TensorFlow, a Cuda compatible GPU is required to take advantage of increases speeds.
Installation
pip install pyimgaug3d
Example Usage
from pyimgaug3d.augmentation import GridWarp, Flip, Identity
from pyimgaug3d.augmenters import ImageSegmentationAugmenter
img = load_img... # shape=(H,W,D,C)
seg = load_seg... # shape=(H,W,D,C)(one hot encoded)
# This augmenter automatically rounds the segmentation mask
aug = ImageSegmentationAugmenter()
aug.add_augmentation(GridWarp(grid=(4, 5, 5), max_shift=10))
aug.add_augmentation(Flip(0))
aug.add_augmentation(Identity())
aug_img, aug_seg = aug([img, seg]) # call to perform augmentation, each time an augmentation method is sampled at random.
Citation
This library is published along with the following paper
S. Liu, W. Dai, C. Engstrom, J. Fripp, P. B. Greer, S. Crozier,J. A. Dowling,
and S. S. Chandra, “Fabric Image Representation Encoding Networks for Large-scale 3D Medical
Image Analysis,”arXiv e-prints, p. arXiv:2006.15578, Jun. 2020.
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
pyimgaug3d-0.43.tar.gz
(5.7 kB
view details)
File details
Details for the file pyimgaug3d-0.43.tar.gz.
File metadata
- Download URL: pyimgaug3d-0.43.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33c617307d405b0a4dfa485eb618217319299a340d69d730e13e1bb453dae6df
|
|
| MD5 |
62d25facbc6c10ae12e28b2ab7804fbd
|
|
| BLAKE2b-256 |
7296e6b0930b2ae87e5669c8fc4db6c84b7bb6fa78f0e5cd581739c7eaae533f
|