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
from dipy.denoise.nlmeans import nlmeans | |
from dipy.denoise.non_local_means import non_local_means | |
from dipy.denoise.noise_estimate import estimate_sigma | |
input_dir = '/home/saber/Courses/Semester_1/Garyfallidis_Lab/Denoising/NLMeans/Wu/Wu_HYDI/Preprocessed' | |
fname = input_dir + '/DWI_d_68s_eddy_fm.nii.gz' | |
s_img = nib.load(fname) | |
s_data = s_img.get_data() | |
s_data_red = s_data[..., 1:15] |