Skip to content

Instantly share code, notes, and snippets.

View cwood1967's full-sized avatar

Chris Wood cwood1967

  • Stowers Institute
  • Kansas City, MO
View GitHub Profile
@cwood1967
cwood1967 / regex_stuff.ipynb
Created August 5, 2022 18:30
Searching with regex
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cwood1967
cwood1967 / rotate.py
Created July 17, 2025 15:26
Rotate image to napari camera view
"""
Set napari to 3-D mode and rotate it to the desired view
The output size of the rotated image need to be specified
to it will fit into new image. If the image in not spatially
isotropic it should probably be downsampled (likely in y and x).
I use skimage.transform.downscale_local_mean.
Variables
=========