start new:
tmux
start new with session name:
tmux new -s myname
import os | |
import numpy as np | |
import scipy.ndimage as ndimage | |
import matplotlib | |
import matplotlib.pyplot as plt | |
def frac_eq_to(image, value=0): | |
return (image == value).sum() / float(np.prod(image.shape)) | |
def extract_patches(image, patchshape, overlap_allowed=0.5, cropvalue=None, |