SelectComponents

SelectComponents[m,"prop",crit]
computes a property for all components in a label matrix m and returns a version of m in which components that do not satisfy crit are replaced with zeros.

SelectComponents[m,"prop",n]
gives a label matrix for the first n components, ranked by property .

SelectComponents[m,"prop",n,p]
uses an ordering function p.

Details and OptionsDetails and Options

Introduced in 2010
(8.0)
| Updated in 2014
(10.0)