示例#1
0
        public static void ApplyColorMap(Mat src, Mat dst, ColormapType colormap)
        {
            if (src == null)
            {
                throw new ArgumentNullException(nameof(src));
            }
            if (dst == null)
            {
                throw new ArgumentNullException(nameof(dst));
            }

            src.ThrowIfDisposed();
            dst.ThrowIfDisposed();

            NativeMethods.op_3rdparty_applyColorMap(src.NativePtr, dst.NativePtr, colormap);
        }
示例#2
0
 public static extern void op_3rdparty_applyColorMap(IntPtr src, IntPtr dst, ColormapType colormap);
示例#3
0
 static Color[] GenerateColormap(ColormapType type, uint width, float light)
 => type switch
 {