Skip to content

Commit

Permalink
Merge pull request #55 from kschan0214/dev1.2.2.1
Browse files Browse the repository at this point in the history
Dev1.2.2.1
  • Loading branch information
kschan0214 authored Feb 2, 2023
2 parents d6bb60e + 48f7ee9 commit 1f04298
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ If you have a more general question regarding the usage of SEPIA and/or other QS

For full update log, please visit https://sepia-documentation.readthedocs.io/en/latest/getting_started/Release-note.html.

### 1.2.2 (current master)
### 1.2.2.1 (current master)
* Fix bug when using optimum weight total field computation with odd matrix size data

### 1.2.2 (current d6bb60e)
* Fix bug for non-double type input for MATLAB's strel function
* Make sure all holes inside the ROI mask are filled after the background field removal step
* ROI (brain) mask is applied on the fieldmap regardless of what method is chosen
Expand Down
2 changes: 1 addition & 1 deletion sepia_universal_variables.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
% DO NOT change the order of the entities, add a new one at the end instead
%
%% Version
SEPIA_version = 'v1.2.2';
SEPIA_version = 'v1.2.2.1';

%% PATH
SEPIA_HOME = fileparts(mfilename('fullpath'));
Expand Down
5 changes: 4 additions & 1 deletion wrapper/estimateTotalField.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@
fieldMap = double(zeropad_odd_dimension(fieldMap,'pre'));
mask = double(zeropad_odd_dimension(mask,'pre'));

% v1.2.2.1 fix odd matrix issue
matrixSize_tmp = size(mask);

disp('--------------------');
disp('Total field recovery');
disp('--------------------');
Expand All @@ -67,7 +70,7 @@
%% Core
for k = 1:length(wrapper_EchoCombine_function)
if strcmpi(echoCombine,methodEchoCombineName{k})
[totalField, N_std, headerAndExtraData] = feval(wrapper_EchoCombine_function{k},fieldMap,mask,matrixSize,voxelSize,algorParam,headerAndExtraData);
[totalField, N_std, headerAndExtraData] = feval(wrapper_EchoCombine_function{k},fieldMap,mask,matrixSize_tmp,voxelSize,algorParam,headerAndExtraData);
end
end

Expand Down

0 comments on commit 1f04298

Please sign in to comment.