Note: This page has been translated by MathWorks. Please click here

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Select objects in binary image

`J = bwselect3(V,C,R,P)`

`J = bwselect3(X,Y,Z,V,Xi,Yi,Zi)`

`[J] = bwselect3(___,N)`

`[J,idx] = bwselect3(___)`

`[X,Y,Z,J,Xi,Yi,Zi] = bwselect3(___)`

`[X,Y,Z,J,idx,Xi,Yi,Zi] = bwselect3(___)`

returns the binary volume `J`

= bwselect3(`V`

,`C`

,`R`

,`P`

)`J`

containing the objects that overlap
the pixel location
(`R`

,`C`

,`P`

).
`R`

,`C`

, and `P`

are
scalars or equal-length vectors that specify the row, column, and plane index of the
pixel location. Objects are connected sets of pixels with the value
`1`

.

If you specify `R`

,`C`

, and
`P`

as vectors, `J`

contains the set of
objects overlapping with any of the pixels
(R(*k*),C(*k*),P(*k*)), where
*k* is an index into the vector.

`bwlabel`

| `bwselect`

| `imfill`

| `regionfill`

| `roipoly`

Was this topic helpful?