Image Processing Toolbox User's Guide Previous page   Next Page
intlut

Convert integer values using lookup table

Syntax

Description

B = intlut(A, LUT) converts values in array A based on lookup table LUT and returns these new values in array B.

For example, if A is a vector whose kth element is equal to alpha, then B(k) is equal to the LUT value corresponding to alpha, i.e., LUT(alpha+1).

Class Support

A can be uint8, uint16, or int16. If A is uint8, LUT must be a uint8 vector with 256 elements. If A is uint16 or int16, LUT must be a vector with 65536 elements that has the same class as A. B has the same size and class as A.

Example

See Also

ind2gray, rgb2ind


Previous page  ind2rgb ippl Next page

© 1994-2005 The MathWorks, Inc.