Hi Everyone, can anyone help?
1) I am making a GUI for image segmentation.
2)In my GUI, I ask for a input number and display the respective slice. I use inputdlg command.
3)In the second step. I have to select few pixel coordinates and concate them together (please see example). These pixel ranges have to be 'hand picked' using the data cursor from the displayed image. And feed in to another input dilog box which is generated using inputdlg command.
example :X1=A(326:345,106:113);AA = (X1(:);X2(:).....)
3) The problem is, in the second step, I cannot use data cursor to retrieve pixel coordinates from the displayed image.
if true % code
AA = getappdata(handles.select_call, 'AA'); prompt = {'Enter slice no. for training'}; dlg_title = 'Input'; num_lines = 1; def = {'1'}; answer = inputdlg(prompt,dlg_title,num_lines,def); numbr= str2double(answer); A = AA(:,:,numbr); size(A); axes(handles.axes7); imagesc(A); axis equal; color all; title('slice no. for traning'); x = inputdlg({'X1','X2','X3','X4','X5','X6','X7'},... 'pixel range from image.format',[1 20; 1 20;1 20; 1 20; 1 20; 1 20; 1 20]); data = str2double(x);data end
Best wishes, Swarup
Best Answer