Skip to content

Commit d498d68

Browse files
author
Aldo Zaimi
committed
small updates
1 parent c93c6b7 commit d498d68

File tree

3 files changed

+28
-2
lines changed

3 files changed

+28
-2
lines changed

code/GUI/ManualCorrectionGUI.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ function ManualCorrectionGUI_OpeningFcn(hObject, eventdata, handles, varargin)
7474
if strfind(varargin{1},'.nii')
7575
handles.img = load_nii_data(varargin{1});
7676
else
77-
handles.img = rgb2gray(imread(varargin{1}));
77+
handles.img =imread(varargin{1});
7878
end
7979

8080
% Image is enhanced to help manual segmentation

code/GUI/SegmentationGUI.m

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1960,10 +1960,27 @@ function popupmenu_ROC_Callback(hObject, eventdata, handles)
19601960

19611961
% Call the slider_ROC_plot callback function to update classifier, ROC plot
19621962
% & axon discrimination display
1963+
1964+
1965+
handleArray = [handles.remove, handles.remove_concavity, handles.DiscriminantAnalysis, handles.resetStep3, handles.go_full_image...
1966+
handles.LoadSegParam, handles.PixelSize, handles.PixelSize_button, handles.popupmenu_ROC, handles.Transparency, handles.slider_ROC_plot...
1967+
handles.Quadratic, handles.Linear, handles.MyelinSeg];
1968+
1969+
set(handleArray,'Enable','off');
1970+
drawnow;
1971+
1972+
19631973
slider_ROC_plot_Callback(hObject, eventdata, handles);
19641974

1975+
set(handleArray,'Enable','on');
1976+
1977+
19651978
guidata(hObject,handles);
19661979

1980+
1981+
1982+
1983+
19671984
% --- Executes during object creation, after setting all properties.
19681985
function popupmenu_ROC_CreateFcn(hObject, eventdata, handles)
19691986
% hObject handle to popupmenu_ROC (see GCBO)
@@ -1986,6 +2003,13 @@ function slider_ROC_plot_Callback(hObject, eventdata, handles)
19862003
% eventdata reserved - to be defined in a future version of MATLAB
19872004
% handles structure with handles and user data (see GUIDATA)
19882005

2006+
handleArray = [handles.remove, handles.remove_concavity, handles.DiscriminantAnalysis, handles.resetStep3, handles.go_full_image...
2007+
handles.LoadSegParam, handles.PixelSize, handles.PixelSize_button, handles.popupmenu_ROC, handles.Transparency, handles.slider_ROC_plot...
2008+
handles.Quadratic, handles.Linear, handles.MyelinSeg];
2009+
2010+
set(handleArray,'Enable','off');
2011+
drawnow;
2012+
19892013
% Make sure the slider value is an integer
19902014
float_value=get(handles.slider_ROC_plot,'Value');
19912015
set(handles.slider_ROC_plot,'Value',round(float_value));
@@ -2031,6 +2055,8 @@ function slider_ROC_plot_Callback(hObject, eventdata, handles)
20312055
% -1-
20322056
% imshow(sc(get(handles.Transparency,'Value')*sc(handles.data.DA_accepted,[0 0.75 0],handles.data.DA_accepted)...
20332057
% +get(handles.Transparency,'Value')*sc(Rejected_axons_img,[1 0.5 0],Rejected_axons_img)+sc(handles.data.Step1)));
2058+
2059+
set(handleArray,'Enable','on');
20342060

20352061
guidata(hObject,handles);
20362062

code/utils/as_regiongrowing.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function J=regiongrowing(I,x,y,reg_maxdist)
1+
function J=as_regiongrowing(I,x,y,reg_maxdist)
22
% This function performs "region growing" in an image from a specified
33
% seedpoint (x,y)
44
%

0 commit comments

Comments
 (0)