You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lib/NiftiOOP/NiftiMod.m
+4-2
Original file line number
Diff line number
Diff line change
@@ -85,8 +85,10 @@
85
85
function [image, header] = load(this)
86
86
if( ~this.isLoaded&& ~strcmp(this.filepath,'')) % it is not already isLoaded and we were not called with empty string (by Matlab callingn our get functions without command after initiating!)
87
87
disp(['Loading 'this.filepath' from disk...']);
88
-
% nifti = load_nii(this.filepath, [], [], [], [], [], 0.1, 'q'); % load with 0.1 tolerance, prefer the q-form over the sform!
89
-
nifti = load_untouch_nii(this.filepath); % load with 0.1 tolerance, prefer the q-form over the sform!
88
+
%nifti = load_nii(this.filepath, [], [], [], [], [], 0.1, 'q'); % load with 0.1 tolerance, prefer the q-form over the sform!
89
+
nifti = load_untouch_nii(this.filepath); % load untouched, i.e. keep orginial data orientation (dont apply any transform)
90
+
nifti = applyNiiIntensityScaling(nifti); %however, the voxel intesities should be scaled correctly now here (as they
91
+
%would by load_nii otherewise)
90
92
91
93
this.header =nifti.hdr; % header should maybe kept all the time ..
0 commit comments