2 ## @deftypefn {Function File} {[@var{imout}, @var{idx}] =} bwselect(@var{im}, @var{cols}, @var{rows}, @var{connect})
3 ## Select connected regions in a binary image.
8 ## @item [@var{cols}, @var{rows}]
9 ## vectors of starting points (x,y)
10 ## @item @var{connect}
11 ## connectedness 4 or 8. default is 8
13 ## the image of all objects in image im that overlap
14 ## pixels in (cols,rows)
16 ## index of pixels in imout
20 # Copyright (C) 1999 Andy Adler
21 # This code has no warrany whatsoever.
22 # Do what you like with this code as long as you
23 # leave this copyright in place.
25 # $Id: bwselect.m 3011 2007-01-04 23:46:17Z hauberg $
26 function [imout, idx] = bwselect( im, cols, rows, connect )
32 [jnk,idx]= bwfill( ~im, cols,rows, connect );
34 imout= zeros( size(jnk) );
39 # Revision 1.3 2007/01/04 23:41:47 hauberg
40 # Minor changes in help text
42 # Revision 1.2 2007/01/02 21:58:38 hauberg
43 # Documentation is now in Texinfo (looks better on the website)
45 # Revision 1.1 2006/08/20 12:59:32 hauberg
46 # Changed the structure to match the package system
48 # Revision 1.1 2002/03/17 02:38:52 aadler
49 # fill and edge detection operators
51 # Revision 1.1 1999/06/08 17:06:01 aadler