- inital transforms code

This commit is contained in:
w.pomp
2026-09-04 15:51:53 +02:00
parent 6913e65420
commit 4074770fd3
7 changed files with 90 additions and 16 deletions
+6 -6
View File
@@ -20,7 +20,7 @@ To transition to semver, versions before 0.1.0 were yanked from crates.io.
## Installation
```
```sh
pip install ndbioimage
```
@@ -28,7 +28,7 @@ pip install ndbioimage
Work in progress! Make sure ffmpeg is installed.
```
```sh
pip install ndbioimage[write]
```
@@ -38,7 +38,7 @@ pip install ndbioimage[write]
- Reading an image file and plotting the frame at channel=2, time=1
```
```python
import matplotlib.pyplot as plt
from ndbioimage import Imread
with Imread('image_file.tif', axes='ctyx', dtype=int) as im:
@@ -47,7 +47,7 @@ with Imread('image_file.tif', axes='ctyx', dtype=int) as im:
- Showing some image metadata
```
```python
from ndbioimage import Imread
from pprint import pprint
with Imread('image_file.tif') as im:
@@ -56,7 +56,7 @@ with Imread('image_file.tif') as im:
- Slicing the image without loading the image into memory
```
```python
from ndbioimage import Imread
with Imread('image_file.tif', axes='cztyx') as im:
sliced_im = im[1, :, :, 100:200, 100:200]
@@ -66,7 +66,7 @@ sliced_im is an instance of Imread which will load any image data from file only
- Converting (part) of the image to a numpy ndarray
```
```python
from ndbioimage import Imread
import numpy as np
with Imread('image_file.tif', axes='cztyx') as im: