Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/hanjinliu/impy
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Aug 4, 2021
2 parents 3f9b28e + c5fe602 commit 843af24
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -211,6 +211,7 @@ Affine transformation, deconvolution and many filter functions are automatically
- `focus_map` → Find focus using variance of Laplacian method.
- `stokes` → Analyze polarization using Stokes parameters.
- `fft`:zap::maple_leaf:, `power_spectra`:zap::maple_leaf:, `ifft`:zap::maple_leaf: → Fourier transformation.
- `local_dft`:zap::maple_leaf:, `local_power_spectra`:zap::maple_leaf: → Local Fourier transformation (upsampling in Fourier space while avoid calculating whole values).
- `threshold` → Thresholding (many methods included).
- `crop_center`, `crop_kernel`, `remove_edges`, `rotated_crop` → Crop image.
- `clip`, `rescale_intensity` → Rescale the intensity profile into certain range.
@@ -294,8 +295,8 @@ Affine transformation, deconvolution and many filter functions are automatically
- `/` → Reslice selected image-layers with all the lines and paths in selected shape-layers. Result is stored in `ip.gui.results` for now.
- `Ctrl` + `P` → Projection of shape-layers or point-layers to 2D layers.
- `Ctrl` + `G` / `Ctrl` + `Shift` + `G` → Link/Unlink layers. Like "grouping" in PowerPoint.
- `Shift` + `S` / `S` → Add 2D/nD shape-layer.
- `Shift` + `P` / `P` → Add 2D/nD point-layer.
- `S` → Add hape-layer.
- `P` → Add point-layer.
- Show coordinates of selected point-layers or track-layers. You can also copy it to clipboard.
- Note pad in `Window > Note`.
- Call `impy.imread` in `File > imread ...`. Call `impy.imsave` in `File > imsave ...`.
2 changes: 1 addition & 1 deletion impy/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.18.6"
__version__ = "1.18.7"

import logging
from ._const import Const, SetConst
4 changes: 2 additions & 2 deletions impy/viewer/keybinds.py
Original file line number Diff line number Diff line change
@@ -367,8 +367,8 @@ def _crop_rectangle(img, crds, dims):
translate = np.empty(2)
for i in [0, 1]:
sl0 = sorted([start[i], end[i]])
x0 = int(sl0[0])+1
x1 = int(sl0[1])+1
x0 = max(int(sl0[0]), 0)
x1 = min(int(sl0[1]), img.sizeof(dims[i]))
sl.append(f"{dims[i]}={x0}:{x1}")
translate[i] = x0

0 comments on commit 843af24

Please sign in to comment.