Skip to content

Commit 343329b

Browse files
Merge pull request #71 from haesleinhuepf/slice-nd-images
support for n-dimensional data
2 parents 183b0f7 + c656dfd commit 343329b

File tree

17 files changed

+993
-121
lines changed

17 files changed

+993
-121
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,13 @@ stackview.switch(
233233

234234
![](https://raw.githubusercontent.com/haesleinhuepf/stackview/main/docs/images/demo_switch_toggleable.gif)
235235

236+
### nD-Viewer
237+
238+
You can also use all functions above with n-dimensional data (since stackview 0.11.0). You will then see multiple sliders for navigating through dimensions such as space and time.
239+
In case you work with multiple channels, using `stackview.switch()` with `toggleable=True` is recommended ([Read more](https://github.com/haesleinhuepf/stackview/blob/main/docs/nd-data.ipynb)).
240+
241+
![](https://raw.githubusercontent.com/haesleinhuepf/stackview/main/docs/images/nd-data.gif)
242+
236243

237244
### Crop
238245

docs/data/mitosis.tif

32.7 MB
Binary file not shown.

docs/demo.ipynb

Lines changed: 156 additions & 83 deletions
Large diffs are not rendered by default.

docs/images/nd-data.gif

5.94 MB
Loading

docs/nd-data.ipynb

Lines changed: 763 additions & 0 deletions
Large diffs are not rendered by default.

stackview/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.9.2"
1+
__version__ = "0.10.0"
22

33
from ._static_view import jupyter_displayable_output, insight
44
from ._utilities import merge_rgb

stackview/_annotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def annotate(
4343
slice_number : int, optional
4444
Slice-position in the stack
4545
axis: int, optional
46-
Axis where the slice-position can be modified interactively
46+
This parameter is obsolete. If you want to show any other axis than the first, you need to transpose the image before, e.g. using np.swapaxes().
4747
alpha : float, optional
4848
Alpha blending value for the labels on top of the image
4949
continuous_update : bool, optional

stackview/_crop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def crop(image,
2121
slice_number : int, optional
2222
Slice-position in the stack to be shown (default: center plane)
2323
axis : int, optional
24-
Axis along which we slice the shown stack (default: 0)
24+
This parameter is obsolete. If you want to show any other axis than the first, you need to transpose the image before, e.g. using np.swapaxes().
2525
continuous_update : bool, optional
2626
Update the image while dragging the sliders, default: False
2727
slider_text: str, optional

stackview/_curtain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def curtain(
2828
slice_number : int, optional
2929
Slice-position in case we are looking at an image stack
3030
axis : int, optional
31-
Axis in case we are slicing a stack
31+
This parameter is obsolete. If you want to show any other axis than the first, you need to transpose the image before, e.g. using np.swapaxes().
3232
display_width : int, optional
3333
This parameter is obsolete. Use zoom_factor instead
3434
display_height : int, optional

stackview/_display_range.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def display_range(
1919
slice_number : int, optional
2020
Slice-position in case we are looking at an image stack
2121
axis : int, optional
22-
Axis in case we are slicing a stack
22+
This parameter is obsolete. If you want to show any other axis than the first, you need to transpose the image before, e.g. using np.swapaxes().
2323
display_width : int, optional
2424
This parameter is obsolete. Use zoom_factor instead
2525
display_height : int, optional

0 commit comments

Comments
 (0)