% -*- texinfo -*- % @deftypefn {Function File} {@var{A} = } applylut (@var{BW},@var{LUT}) % Uses lookup tables to perform a neighbour operation on binary images. % % A = applylut(BW,LUT) returns the result of a neighbour operation % using the lookup table @var{LUT} which can be created by makelut. % % It first computes a matrix with the index of each element in the % lookup table. To do this, it convolves the original matrix with a % matrix which assigns each of the neighbours a bit in the resulting % index. Then @var{LUT} is accessed to compute the result. % % @seealso{makelut} % @end deftypefn