Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
MorphologicalGradient.cs
3
5{
9 public static partial class MorphologicalOperations
10 {
16 {
17 return M.MorphologicalGradient(3, 3, 0f, 1f);
18 }
19
25 public static Matrix<float> MorphologicalGradient(this Matrix<float> M, int NeighborhoodWidth)
26 {
27 return M.MorphologicalGradient(NeighborhoodWidth, NeighborhoodWidth, 0f, 1f);
28 }
29
37 int NeighborhoodWidth, int NeighborhoodHeight)
38 {
39 return M.MorphologicalGradient(NeighborhoodWidth, NeighborhoodHeight, 0f, 1f);
40 }
41
51 int NeighborhoodWidth, int NeighborhoodHeight, float MinThreshold, float MaxThreshold)
52 {
53 Matrix<float> Result = M.Dilate(NeighborhoodWidth, NeighborhoodHeight, MaxThreshold);
54 Result.AbsoluteDifference(M.Erode(NeighborhoodWidth, NeighborhoodHeight, MinThreshold));
55 return Result;
56 }
57
64 {
65 return M.MorphologicalGradient(Kernel, 0f, 1f);
66 }
67
76 float MinThreshold, float MaxThreshold)
77 {
78 Matrix<float> Result = M.Dilate(Kernel, MaxThreshold);
79 Result.AbsoluteDifference(M.Erode(Kernel, MinThreshold));
80 return Result;
81 }
82
88 {
89 return M.MorphologicalGradient(3, 3, 0, 0x01000000);
90 }
91
97 public static Matrix<int> MorphologicalGradient(this Matrix<int> M, int NeighborhoodWidth)
98 {
99 return M.MorphologicalGradient(NeighborhoodWidth, NeighborhoodWidth, 0, 0x01000000);
100 }
101
109 int NeighborhoodWidth, int NeighborhoodHeight)
110 {
111 return M.MorphologicalGradient(NeighborhoodWidth, NeighborhoodHeight, 0, 0x01000000);
112 }
113
123 int NeighborhoodWidth, int NeighborhoodHeight, int MinThreshold, int MaxThreshold)
124 {
125 Matrix<int> Result = M.Dilate(NeighborhoodWidth, NeighborhoodHeight, MaxThreshold);
126 Result.AbsoluteDifference(M.Erode(NeighborhoodWidth, NeighborhoodHeight, MinThreshold));
127 return Result;
128 }
129
136 {
137 return M.MorphologicalGradient(Kernel, 0, 0x01000000);
138 }
139
147 public static Matrix<int> MorphologicalGradient(this Matrix<int> M, Shape Kernel,
148 int MinThreshold, int MaxThreshold)
149 {
150 Matrix<int> Result = M.Dilate(Kernel, MaxThreshold);
151 Result.AbsoluteDifference(M.Erode(Kernel, MinThreshold));
152 return Result;
153 }
154
155 }
156}
Shape for morphological operations.
Definition: Shape.cs:9
Implements a Matrix, basic component for computations in Image Processing and Computer Vision.
Definition: Matrix.cs:12
static Matrix< float > MorphologicalGradient(this Matrix< float > M, Shape Kernel)
The absolute difference between the dilation and the erosion of an image.
static Matrix< float > MorphologicalGradient(this Matrix< float > M, int NeighborhoodWidth, int NeighborhoodHeight)
The absolute difference between the dilation and the erosion of an image.
static Matrix< int > MorphologicalGradient(this Matrix< int > M, Shape Kernel)
The absolute difference between the dilation and the erosion of an image.
static Matrix< int > MorphologicalGradient(this Matrix< int > M)
The absolute difference between the dilation and the erosion of an image.
static Matrix< int > MorphologicalGradient(this Matrix< int > M, int NeighborhoodWidth, int NeighborhoodHeight)
The absolute difference between the dilation and the erosion of an image.
static Matrix< int > MorphologicalGradient(this Matrix< int > M, Shape Kernel, int MinThreshold, int MaxThreshold)
The absolute difference between the dilation and the erosion of an image.
static Matrix< int > MorphologicalGradient(this Matrix< int > M, int NeighborhoodWidth)
The absolute difference between the dilation and the erosion of an image.
static Matrix< int > MorphologicalGradient(this Matrix< int > M, int NeighborhoodWidth, int NeighborhoodHeight, int MinThreshold, int MaxThreshold)
The absolute difference between the dilation and the erosion of an image.
static Matrix< float > MorphologicalGradient(this Matrix< float > M, int NeighborhoodWidth, int NeighborhoodHeight, float MinThreshold, float MaxThreshold)
The absolute difference between the dilation and the erosion of an image.
static Matrix< float > MorphologicalGradient(this Matrix< float > M, Shape Kernel, float MinThreshold, float MaxThreshold)
The absolute difference between the dilation and the erosion of an image.
static Matrix< float > MorphologicalGradient(this Matrix< float > M)
The absolute difference between the dilation and the erosion of an image.
static Matrix< float > MorphologicalGradient(this Matrix< float > M, int NeighborhoodWidth)
The absolute difference between the dilation and the erosion of an image.