Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Aldo Zaimi committed Sep 22, 2016
1 parent c93c6b7 commit d498d68
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/GUI/ManualCorrectionGUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function ManualCorrectionGUI_OpeningFcn(hObject, eventdata, handles, varargin)
if strfind(varargin{1},'.nii')
handles.img = load_nii_data(varargin{1});
else
handles.img = rgb2gray(imread(varargin{1}));
handles.img =imread(varargin{1});
end

% Image is enhanced to help manual segmentation
Expand Down
26 changes: 26 additions & 0 deletions code/GUI/SegmentationGUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -1960,10 +1960,27 @@ function popupmenu_ROC_Callback(hObject, eventdata, handles)

% Call the slider_ROC_plot callback function to update classifier, ROC plot
% & axon discrimination display


handleArray = [handles.remove, handles.remove_concavity, handles.DiscriminantAnalysis, handles.resetStep3, handles.go_full_image...
handles.LoadSegParam, handles.PixelSize, handles.PixelSize_button, handles.popupmenu_ROC, handles.Transparency, handles.slider_ROC_plot...
handles.Quadratic, handles.Linear, handles.MyelinSeg];

set(handleArray,'Enable','off');
drawnow;


slider_ROC_plot_Callback(hObject, eventdata, handles);

set(handleArray,'Enable','on');


guidata(hObject,handles);





% --- Executes during object creation, after setting all properties.
function popupmenu_ROC_CreateFcn(hObject, eventdata, handles)
% hObject handle to popupmenu_ROC (see GCBO)
Expand All @@ -1986,6 +2003,13 @@ function slider_ROC_plot_Callback(hObject, eventdata, handles)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

handleArray = [handles.remove, handles.remove_concavity, handles.DiscriminantAnalysis, handles.resetStep3, handles.go_full_image...
handles.LoadSegParam, handles.PixelSize, handles.PixelSize_button, handles.popupmenu_ROC, handles.Transparency, handles.slider_ROC_plot...
handles.Quadratic, handles.Linear, handles.MyelinSeg];

set(handleArray,'Enable','off');
drawnow;

% Make sure the slider value is an integer
float_value=get(handles.slider_ROC_plot,'Value');
set(handles.slider_ROC_plot,'Value',round(float_value));
Expand Down Expand Up @@ -2031,6 +2055,8 @@ function slider_ROC_plot_Callback(hObject, eventdata, handles)
% -1-
% imshow(sc(get(handles.Transparency,'Value')*sc(handles.data.DA_accepted,[0 0.75 0],handles.data.DA_accepted)...
% +get(handles.Transparency,'Value')*sc(Rejected_axons_img,[1 0.5 0],Rejected_axons_img)+sc(handles.data.Step1)));

set(handleArray,'Enable','on');

guidata(hObject,handles);

Expand Down
2 changes: 1 addition & 1 deletion code/utils/as_regiongrowing.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function J=regiongrowing(I,x,y,reg_maxdist)
function J=as_regiongrowing(I,x,y,reg_maxdist)
% This function performs "region growing" in an image from a specified
% seedpoint (x,y)
%
Expand Down

0 comments on commit d498d68

Please sign in to comment.