FUNCTION REFERENCE
grayconnected
Flood-fill pixels with intensity close to a seed.
Flood-fill pixels with intensity close to a seed.
Syntax
BW = grayconnected(I, row, column, tolerance)Selects the 8-connected region within the inclusive seed intensity plus/minus tolerance. Default tolerance is 32 for integer images and 0.1 for floating images. Output is logical and has the input shape.
Example
grayconnected([0 .05 .8; .05 .1 .9],1,1)Differences from MATLAB: 2-D only; the newer Connectivity name-value argument is not supported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.