pub fn lut(
src: &impl ToInputArray,
lut: &impl ToInputArray,
dst: &mut impl ToOutputArray
) -> Result<()>
Expand description
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:
where
§Parameters
- src: input array of 8-bit elements.
- 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.
§See also
convertScaleAbs, Mat::convertTo