Public paste
Undefined
By: ruizinho | Date: Sep 24 2010 17:12 | Format: None | Expires: never | Size: 169 B | Hits: 851

  1. function y_=f2(im,thr,t2)
  2. if nargin <2
  3.     im=imread('demo.jpg');
  4.     thr=100;
  5.     t2=200;
  6. end
  7. y=im(:,:,1)>thr;
  8. if nargout<1
  9.     imshow(im);
  10. else
  11.  y_=y;
  12.  
  13. end