Commit 898a672 1 parent 1e7a9b4 commit 898a672 Copy full SHA for 898a672
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 177
177
' uint8' 0 % unknown %
178
178
' uint8' 0 % binary (1 bit/voxel) %
179
179
' uint8' 1 % unsigned char (8 bits/voxel) %
180
- ' int16' 1 % signed short (16 bits/voxel) %
180
+ ' int16' 1 % signed short (16 bits/voxel) %
181
181
' int32' 1 % signed int (32 bits/voxel) %
182
182
' single' 1 % float (32 bits/voxel) %
183
183
' single' 2 % complex (64 bits/voxel) %
236
236
nii.img = fread(fid , imgbytenum , [nii .datatype ' =>' nii .datatype ]);
237
237
fclose(fid );
238
238
else
239
- nii.img = typecast(gzdata(nii .hdr .vox_offset + 1 : nii .hdr .vox_offset + imgbytenum ), nii .datatype );
239
+ nii.img = typecast(gzdata(double( nii .hdr .vox_offset + 1 ) : double( nii .hdr .vox_offset + imgbytenum ) ), nii .datatype );
240
240
end
241
241
end
242
242
You can’t perform that action at this time.
0 commit comments