Niftiinfo do not keep negative values
古いコメントを表示
When I'm importing nifti files using niftiinfo and niftiread, only the positive values from the metadata remains. The original files contain both positive and negative values. I have read the documentation and tried to change the cal_max and cal_min field, but this doesn't solve it.
Any ideas how to fix this? Are there any other functions to load niftifiles in matlab?
Thanks!
7 件のコメント
Walter Roberson
2023 年 6 月 17 日
Do you have a sample file we could test with?
Sebastian Dahl Sandbu
2023 年 6 月 17 日
the cyclist
2023 年 6 月 17 日
How did you try to upload the file here? Don't use the image icon, but use the paper clip icon (which should work for any file type, unless it is too large). If that doesn't work, maybe try to zip it first?
Sebastian Dahl Sandbu
2023 年 6 月 17 日
Sebastian Dahl Sandbu
2023 年 6 月 17 日
Walter Roberson
2023 年 6 月 17 日
cal_max and cal_min are used for mapping for display colors
Data scaling is different controls; see for example https://nifti.nimh.nih.gov/nifti-1/documentation/nifti1fields/nifti1fields_pages/scl_slopeinter.html
Sebastian Dahl Sandbu
2023 年 6 月 17 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Read and Write Image Data from Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
