@@ -314,12 +314,32 @@ function load_traj_buttom_Callback(hObject, eventdata, handles)
314314 end
315315
316316function classify_button_Callback(hObject , eventdata , handles )
317+ % see if we have the path for the segmentation_config file
318+ rpath = get(handles .seg_path ,' String' );
319+ [error , segmentation_configs ] = select_files_default(1 ,rpath );
320+ if error
321+ % if not, ask for segmentation_config file
322+ segmentation_configs = select_files(1 );
323+ if isempty(segmentation_configs )
324+ return
325+ end
326+ end
327+ % see if we have the path for the labels file
328+ labels_path = get(handles .path_labels ,' String' );
329+ [error , ~ ] = select_files_default(2 ,labels_path );
330+ if error
331+ % if not, ask for labels file
332+ labels_path = select_files(2 );
333+ if isempty(labels_path )
334+ return
335+ end
336+ end
317337 paths = {get(handles .path_labels ,' String' ),...
318338 get(handles .seg_path ,' String' )};
319339 values = {get(handles .num_clusters ,' String' )};
320340 user_input = {};
321341 user_input{1 ,1 } = paths ;
322- user_input{1 ,2 } = values ;
342+ user_input{1 ,2 } = values ;
323343 % Check if the information given by the user are correct
324344 test_result = check_user_input(user_input ,3 );
325345 if test_result == 0 % if error
0 commit comments