Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Sharpen.cs
2{
6 public static partial class ConvolutionOperations
7 {
13 public static Matrix<float> Sharpen(this Matrix<float> M)
14 {
15 return M.Convolute(sharpenKernel);
16 }
17
23 public static Matrix<int> Sharpen(this Matrix<int> M)
24 {
25 return M.Convolute(sharpenKernel);
26 }
27
33 public static IMatrix Sharpen(this IMatrix M)
34 {
35 return M.Convolute(sharpenKernel);
36 }
37
38 private static readonly Matrix<int> sharpenKernel = new Matrix<int>(3, 3, new int[]
39 {
40 0, -1, 0,
41 -1, 5, -1,
42 0, -1, 0
43 });
44 }
45}
Implements a Matrix, basic component for computations in Image Processing and Computer Vision.
Definition: Matrix.cs:12
static Matrix< int > Sharpen(this Matrix< int > M)
Sharpens an image. (Subtracts the negative Laplacian).
Definition: Sharpen.cs:23
static Matrix< float > Sharpen(this Matrix< float > M)
Sharpens an image. (Subtracts the negative Laplacian).
Definition: Sharpen.cs:13
static IMatrix Sharpen(this IMatrix M)
Sharpens an image. (Subtracts the negative Laplacian).
Definition: Sharpen.cs:33
Interface for matrices.
Definition: IMatrix.cs:9