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