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); }
public static extern void op_3rdparty_applyColorMap(IntPtr src, IntPtr dst, ColormapType colormap);
static Color[] GenerateColormap(ColormapType type, uint width, float light) => type switch {