fineslice-0.0.2
توضیحات
Affine slicer
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | fineslice-0.0.2 |
| نام | fineslice |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Florian Rupprecht |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/nx10/fineslice |
| آدرس اینترنتی | https://pypi.org/project/fineslice/ |
| مجوز | BSD 3-Clause License |
# `fineslice`
`fineslice` is a lightweight sampler for 3D-affine transformed images (commonly used in neuroscience) implemented in
pure Python + NumPy.
It does not make any assumptions about the data. Pass _any_ image texture and affine matrix directly into it.
### Features
- Precision sampling (no need to 're-sample' and loose precision)
- Automatically finds optimal dimensions
- Only depends on NumPy
### Usage with `nibabel`
For the best performance directly pass in the `nibabel` data object as a texture:
```Python
import nibabel as nib
import fineslice as fine
img = nib.load('my_image.nii.gz')
out = fine.sample_0d(
texture=img.dataobj,
affine=img.affine,
out_position=(0, 0, 0)
)
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8 | Python |
نحوه نصب
نصب پکیج whl fineslice-0.0.2:
pip install fineslice-0.0.2.whl
نصب پکیج tar.gz fineslice-0.0.2:
pip install fineslice-0.0.2.tar.gz