| cv.LUT - MATLAB File Help |
Performs a look-up table transform of an array
dst = cv.LUT(src, lut)
uint8 or int8).src, the table should either have a single channel (in this case
the same table is used for all channels) or the same number of channels as
in the input array.src, and
the same depth as lut.The function cv.LUT fills the output array with values from the look-up table. Indices of the entries are taken from the input array. That is, the function processes each element of src as follows:
dst(I) = lut(src(I) + d)
where:
d = { 0 if src has uint8 depth
{ 128 if src has int8 depth