MATLAB Answers

0

zoom the JPEG and contour the region of interst and calculate the values of x,y,z in that region

Asked by Muhammad on 22 Aug 2013
Hi All Hope you all are enjoying good health. i opened the JPEG images using GUI in MATLAB in axis by using forward for the next slice and backward for the perior. the code is given below if true % --- Executes on button press in pushbutton1. function pushbutton1_Callback(hObject, eventdata, handles) handles.output = hObject; handles.index = handles.index - 1; Cek(hObject, eventdata, handles); imshow(handles.X{handles.index},[]); guidata(hObject, handles);
% --- Executes on button press in pushbutton2. function pushbutton2_Callback(hObject, eventdata, handles) handles.output = hObject; handles.index = handles.index + 1; Cek(hObject, eventdata, handles); imshow(handles.X{handles.index},[]); imfreehand
function Cek(hObject, eventdata, handles) handles.output = hObject; n = length(handles.files); if handles.index > 1, set(handles.pushbutton1,'enable','on'); else set(handles.pushbutton1,'enable','off'); end if handles.index < n, set(handles.pushbutton2,'enable','on'); else set(handles.pushbutton2,'enable','off'); end guidata(hObject, handles);
end i want to zoom somepart of any desired slice (127X127 and 55 slices are there)and make some region of interst and calculate the x,y and z values in that region. any help is apperciated in advance. Hoping for a early response too
Muhammad

  0 Comments

Sign in to comment.

0 Answers