Skip to content

Commit

Permalink
Suppress background noise when estimating FA for multimodal normaliza…
Browse files Browse the repository at this point in the history
…tion.
  • Loading branch information
andreashorn committed May 4, 2016
1 parent 3a9f354 commit d409bf0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion connectomics/ea_isolate_fa.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function ea_isolate_fa(directory,options)

% Constants DTI
parametersDTI=[];
parametersDTI.BackgroundTreshold=150;
parametersDTI.BackgroundThreshold=150;
parametersDTI.WhiteMatterExtractionThreshold=0.10;
parametersDTI.textdisplay=true;

Expand Down
6 changes: 3 additions & 3 deletions ext_libs/ftracking/ea_DTI.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%
% DTIdata: A struct containing DTIdata(i).VoxelData, DTIdata(i).Gradient
% and DTIdata(i).Bvalue of all the DTI datasets
% parameters: A struct containing, parameters.BackgroundTreshold and
% parameters: A struct containing, parameters.BackgroundThreshold and
% parameters.WhiteMatterExtractionThreshold, parameters.textdisplay
%
% ADC: A 3D matrix with the Apparent Diffuse Coefficient (ADC)
Expand Down Expand Up @@ -96,7 +96,7 @@
for z=1:size(S0,3),

% Only process a pixel if it isn't background
%if(S0(x,y,z)>parameters.BackgroundTreshold)
if(S0(x,y,z)>parameters.BackgroundThreshold)

% Calculate the Diffusion tensor [Dxx,Dxy,Dxz,Dyy,Dyz,Dzz],
% with a simple matrix inverse.
Expand Down Expand Up @@ -142,7 +142,7 @@
if(FAv>parameters.WhiteMatterExtractionThreshold)
VectorF(x,y,z,:)=EigenVectors(:,end)*EigenValues_old(end);
end
%end
end
end
end
end
Expand Down
2 changes: 0 additions & 2 deletions lead.m
Original file line number Diff line number Diff line change
Expand Up @@ -1215,13 +1215,11 @@ function ea_switchctmr(varargin)
set(handles.coregctcheck,'Enable','off');
set(handles.coregctcheck,'Value',0);
set(handles.coregthreshs,'Enable','off');
set(handles.coregmrpopup,'Enable','on');
case 2 % CT
set(handles.coregct_checkbox,'Enable','on');
set(handles.coregctmethod,'Enable','on');
set(handles.coregctcheck,'Enable','on');
set(handles.coregthreshs,'Enable','on');
set(handles.coregmrpopup,'Enable','off');
end
end
updatestatus(handles);
Expand Down

0 comments on commit d409bf0

Please sign in to comment.