OpenCvSharp.Cv2.LUT C# (CSharp) Method

LUT() public static method

transforms array of numbers using a lookup table: dst(i)=lut(src(i))
public static LUT ( InputArray src, InputArray lut, OutputArray dst, int interpolation ) : void
src InputArray Source array of 8-bit elements
lut InputArray Look-up table of 256 elements. /// In the case of multi-channel source 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 source array
dst OutputArray Destination array; /// will have the same size and the same number of channels as src, /// and the same depth as lut
interpolation int
return void
        public static void LUT(InputArray src, InputArray lut, OutputArray dst, int interpolation = 0)
        {
            if (src == null)
                throw new ArgumentNullException(nameof(src));
            if (lut == null)
                throw new ArgumentNullException(nameof(lut));
            if (dst == null)
                throw new ArgumentNullException(nameof(dst));
            src.ThrowIfDisposed();
            lut.ThrowIfDisposed();
            dst.ThrowIfNotReady();
            NativeMethods.core_LUT(src.CvPtr, lut.CvPtr, dst.CvPtr);
            GC.KeepAlive(src);
            GC.KeepAlive(lut);
            dst.Fix();
        }
        /// <summary>

Same methods

Cv2::LUT ( InputArray src, byte lut, OutputArray dst, int interpolation ) : void
Cv2