//
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
//
namespace ImageSharp.Processing.Processors
{
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 Fast2DArray Laplacian3X3XY =
new float[,]
{
{ -1, -1, -1 },
{ -1, 8, -1 },
{ -1, -1, -1 }
};
///
/// Initializes a new instance of the class.
///
public Laplacian3X3Processor()
: base(Laplacian3X3XY)
{
}
}
}