assertion fail : assert headerbytes == 348 || 540

조회 수: 8 (최근 30일)
HHH
HHH 2023년 6월 29일
댓글: dpb 2023년 6월 29일
When I run my matlab code, I got this error.
I have guaranteed that my header size (info.raw.sizeof_hdr) is 348
but when I run niftiwrite(V, filepath, info), I also got assertion failed
Error using assert
Assertion failed.
Error in niftiwrite (line 104)
assert(headerBytes == 348||headerBytes == 540);
Error in processing_final (line 110)
niftiwrite(V{1},strcat(Folderpath,Folder(num,1).name,'\RoiVolume\RCA_revised.nii'),info{1});
How can I fix this problem ? (Tools for NIFTI and ANALYZE image)
  댓글 수: 1
dpb
dpb 2023년 6월 29일
Insufficient data available to know -- something isn't consistent given the error but we don't have either V or info to see what they might consist of. You would need to post a complete example including data that illustrates the problem for anybody here to do anything other than refer you to the doc.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by