makelut
Create lookup table for use withbwlookup
Syntax
Description
creates a lookup table.lut
= makelut(fun
,n
)fun
is a function that creates a numeric output from a binary neighborhood of sizen
-by-n
. The function creates a lookup table by passing all possible neighborhoods tofun
, one at a time, and storing the outputs in vectorlut
.
Use the lookup table withbwlookup
to perform nonlinear neighborhood filtering.