1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
function sliderRight_Callback(hObject, eventdata, handles)
diffIm = getappdata(handles.computeButton,diffIm);
slider_SliceValue = get(hObject,'Value');
slider_SliceValue = uint16(slider_SliceValue*1540)
image(diffIm(:,:,slider_SliceValue))
function sliderRight_CreateFcn(hObject, eventdata, handles)
if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor',[.9 .9 .9]);
end
function [nbIm] = computeButton_Callback(hObject, eventdata, handles)
if get(handles.dicomReadFunction,'Value')
[diffIm, infoIm] = dicomReader(nbIm,imagesPath);
diffImX = diffIm(end:-1:1,:,:);
setappdata(gcf,'diffIm',diffIm)
image(diffIm(:,:,1));
end |