LUT()
#include <opencv2/core.hpp>
Performs a look-up table transform of an array.
The function 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:
![](https://img2020.cnblogs.com/blog/773157/202102/773157-20210204154638638-169125297.png)
- Parameters
-
src input array of 8-bit elements. —— 只支持输入8位数据元素 lut look-up table of 256 elements; in case of multi-channel input array, 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. dst output array of the same size and number of channels as src, and the same depth as lut.