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:
- 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.