Cannot open NIfTI file: headerSize is not 348 or 540.

I am testing 4 D nii images. But Cannot open NIfTI file: headerSize is not 348 or 540, and Error using ReadFcn @(x)(niftiread(x)>0) function handle for file.

1 Comment

V = niftiread( filename )
Reads the NIfTI image file specified by filename in the current folder or on the path, and returns volumetric data in V .
The niftiread function supports both the NIfTI1 and NIfTI2 file formats.
V = niftiread( headerfile , imgfile )
reads a NIfTI header file .

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 14 Jul 2022

Edited:

on 15 Jul 2022

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!