Note: This page has been translated by MathWorks. Click here to see

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

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

Nonlinear filtering using lookup tables

`J = bwlookup(BW,lut)`

performs a 2-by-2 or 3-by-3 nonlinear neighborhood filtering operation on binary or
grayscale image `J`

= bwlookup(`BW`

,`lut`

)`I`

and returns the results in output image
`J`

. The neighborhood processing determines an integer index value used
to access values in lookup table `lut`

. The fetched
`lut`

value becomes the pixel value in output image
`J`

at the targeted position.

You optionally can perform the filtering