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

12 views (last 30 days)
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
Rishita
Rishita on 15 Jul 2022
Edited: KSSV on 15 Jul 2022
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)

Tags

Community Treasure Hunt

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

Start Hunting!