FUNCTION REFERENCE
bwselect
Select connected components containing seed pixels.
Select connected components containing seed pixels.
Syntax
[BW2, idx] = bwselect(BW, c, r, n)Column and row vectors c and r identify seed pixels; coordinates are rounded to pixel centres. n is connectivity 4 or 8 (default 8). Outside-image seeds are ignored. BW2 is logical; idx is a double column vector of selected one-based linear indices.
Example
bwselect(logical([1 0 1; 1 0 1]),3,1,8)Differences from MATLAB: only noninteractive 2-D pixel-coordinate forms.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.