// // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // namespace ImageSharp.Processing { using System; using System.Diagnostics.CodeAnalysis; /// /// The Laplacian 3 x 3 operator filter. /// /// /// The pixel format. [SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")] public class Laplacian3X3Processor : EdgeDetectorProcessor where TColor : struct, IPackedPixel, IEquatable { /// /// The 2d gradient operator. /// private static readonly float[][] Laplacian3X3XY = new float[][] { new float[] { -1, -1, -1 }, new float[] { -1, 8, -1 }, new float[] { -1, -1, -1 } }; /// public override float[][] KernelXY => Laplacian3X3XY; } }