Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael Ingrisch mingrisch

View GitHub Profile
View vim-cheatsheet.md

Movements

    • / # Move to next / previous word under cursor
  • H / B / L # move to top/middle/bottom line of the screen. Follow this possibly by:

  • z. put the line with the cursor at the center

  • zt put the line with the cursor at the top

  • zb put the line with the cursor at the bottom of the screen

  • CTRL-O CTRL-I undo/redo last jump

Marks

View ExtractLabelPixelCurves.py
import numpy as np
def run(self,mvNode,labelNode, filename):
"""
Extract pixel curves from a multivolume node
prerequisite: labelNode and mvNode need to have the same dimensions, this is not checked.
As long as the label node is created from the mvNode, that's no problem at all.
"""
# get a numpy reference to the moving volume buffer