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

Compute new values of A based on lookup table LUT

Syntax

Purpose

B = uintlut(A,LUT) creates an array B containing new values of A based on the lookup table LUT. 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, that is, LUT(alpha+1).

Class Support

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

Example

See Also

impixel, improfile


Previous page  uint8 warp Next page

© 1994-2005 The MathWorks, Inc.