Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ri_Callback(hObject, eventdata, handles)
- % hObject handle to ri (see GCBO)
- % eventdata reserved - to be defined in a future version of MATLAB
- % handles structure with handles and user data (see GUIDATA)
- handles.r = handles.r -1;
- I= imread('pout.tif'); %picture reading
- imshow(I);
- I(handles.h:handles.r,handles.wid:handles.col,:) = 0;
- I= set(gca,'Position',get(gca,'Position') + [handles.r handles.c 0 0]); % ????? not working on button
- imshow(I);
- % Update handles structure
- guidata(hObject, handles);
- end
- I = set(gca,...)
- set(gca,...)
- set(gca,'Units','Pixels')
- set(gca,'Position',...)
- I(yoffset+(handles.h:handles.r),xoffset+(handles.wid:handles.col),:) = 0;
- I((1:handles.h)+handles.r+yoffset-1,(1:handles.wid)+handles.col+xoffset-1,:) = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement