augment-nd-0.1.3
توضیحات
Simple elastic augmentation for ND arrays.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | augment-nd-0.1.3 |
| نام | augment-nd |
| نسخه کتابخانه | 0.1.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | Jan Funke <funkej@hhmi.org> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/augment-nd/ |
| مجوز | MIT |
# augment
A simple elastic augmentation for ND arrays.
# Installation
`pip install augment-nd`
# Usage
```
import augment
import numpy as np
import math
# create some example data
image = np.zeros((100,500,500), dtype=np.float)
image[:] = 0.5
image[:,:10,:] = 0.75
image[:10,:10,:10] = 1
image[:,::10,:] = 1
image[:,:,::10] = 1
transformation = augment.create_identity_transformation(image.shape)
# jitter in 3D
transformation += augment.create_elastic_transformation(
image.shape,
num_control_points = [3,10,10],
jitter_sigma = [0.3, 10, 10])
# rotate around z axis
transformation += augment.create_rotation_transformation(
image.shape,
math.pi/4)
# apply transformation
image = augment.apply_transformation(image, transformation)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | scipy |
| - | h5py |
| - | pytest-cov |
| - | pytest |
| - | black |
| - | mypy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl augment-nd-0.1.3:
pip install augment-nd-0.1.3.whl
نصب پکیج tar.gz augment-nd-0.1.3:
pip install augment-nd-0.1.3.tar.gz