-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from kschan0214/dev1.2.2.2
fix bug when using BIDS compartible directory input, loading the magn…
- Loading branch information
Showing
3 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
% Kwok-shing Chan @ DCCN | ||
% [email protected] | ||
% Date created: 11 August 2021 (v1.0) | ||
% Date modified: | ||
% Date modified: 9 February 2023 (v1.2.2.2) | ||
% | ||
% | ||
function inputNIFTIList = read_bids_to_filelist(inputDir,outputPrefix) | ||
|
@@ -182,7 +182,9 @@ function save_nifti_as_4d(fileList, outputFilename, isPhase) | |
if (abs(max(nii.img(:))-pi)>1e-4 || abs(min(nii.img(:))-(-pi))>1e-4) && isPhase % allow small differences possibly due to data stype conversion | ||
img = cat(4, img, DICOM2Phase(nii)); | ||
else | ||
img = cat(4, img, nii.img); | ||
% img = cat(4, img, nii.img); | ||
% 20230209: bug fix applying rescale slope and intercept | ||
img = cat(4, img, load_nii_img_only(fileList(k).name)); | ||
end | ||
|
||
numFileLoaded = numFileLoaded + 1; | ||
|