Hi, I'm trying to create a histogram of a .nii file but it's now working. 1. loading the nifti file: >> Try2=load_nifti('DM.nii'); 2. hist(Try2); that generarates a histogram, where most of the values are concentrated between -150 and 200.(3 bars,the middle one is between -50 and 100). 3. I then use a function that sets all pixels in the range to 1 (white) and all pixels that are out of range to 0 (black). range=(inputFileName >= I_min & inputFileName <= i_max); inputFileName(range)=1; inputFileName(~range)=0; 4. Then I save the file and open it with ITKSnap save_nifti(inputFileName,outputFileName,1); but when I open it, it's almost all white. Not sure what I'm doing wrong, please help. Thanks in advance!