opencv函数学习:LUT()的使用

LUT()

官方使用说明

void cv::LUT(InputArray src,  InputArray lut,  OutputArray dst)  

#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.
posted on 2021-02-04 15:47  Cynthia_W  阅读(592)  评论(0编辑  收藏  举报