This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def colorFader(c1,c2,mix=0): #fade (linear interpolate) from color c1 (at mix=0) to c2 (mix=1) | |
c1=np.array(mpl.colors.to_rgb(c1)) | |
c2=np.array(mpl.colors.to_rgb(c2)) | |
return mpl.colors.to_hex((1-mix)*c1 + mix*c2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Computes T1w image in EPI-space from motion-corrected 'nulled' and 'notnulled' | |
timeseries as acquired with SS-SI VASO. | |
''' | |
import numpy as np | |
import nibabel as nb | |
from scipy import signal |