Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. function ri_Callback(hObject, eventdata, handles)
  2. % hObject handle to ri (see GCBO)
  3. % eventdata reserved - to be defined in a future version of MATLAB
  4. % handles structure with handles and user data (see GUIDATA)
  5. handles.r = handles.r -1;
  6. I= imread('pout.tif'); %picture reading
  7. imshow(I);
  8. I(handles.h:handles.r,handles.wid:handles.col,:) = 0;
  9. I= set(gca,'Position',get(gca,'Position') + [handles.r handles.c 0 0]); % ????? not working on button
  10. imshow(I);
  11. % Update handles structure
  12. guidata(hObject, handles);
  13.  
  14. end
  15.  
  16. I = set(gca,...)
  17.  
  18. set(gca,...)
  19.  
  20. set(gca,'Units','Pixels')
  21. set(gca,'Position',...)
  22.  
  23. I(yoffset+(handles.h:handles.r),xoffset+(handles.wid:handles.col),:) = 0;
  24.  
  25. 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