Class ImageTools
Assembly: TowseyLibrary.dll
Fields
|
Improve this Doc
View Source
Declaration
public static readonly Color[] Colors
Field Value
Type |
Description |
SixLabors.ImageSharp.Color[] |
|
|
Improve this Doc
View Source
Declaration
public static Color[] DarkColors
Field Value
Type |
Description |
SixLabors.ImageSharp.Color[] |
|
|
Improve this Doc
View Source
Declaration
public static double[, ] SobelX
Field Value
|
Improve this Doc
View Source
Declaration
public static double[, ] SobelY
Field Value
Methods
|
Improve this Doc
View Source
Declaration
public static Image ApplyInvert(Image<Rgb24> ImageImage)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
ImageImage |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
blurs an image using a square neighbourhood.
Declaration
public static double[, ] Blur(double[, ] matrix, int nh)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the image ot be blurred.
|
Int32 |
nh |
Note that neighbourhood is distance either side of central pixel.
|
Returns
|
Improve this Doc
View Source
blurs and image using a rectangular neighbourhood.
Note that in this method neighbourhood dimensions are full side or window.
Declaration
public static double[, ] Blur(double[, ] matrix, int cWindow, int rWindow)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
image to be blurred.
|
Int32 |
cWindow |
column Window i.e. x-dimension.
|
Int32 |
rWindow |
row Window i.e. y-dimension.
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] ByteMatrix2DoublesMatrix(byte[, ] mb)
Parameters
Type |
Name |
Description |
Byte[,] |
mb |
|
Returns
|
Improve this Doc
View Source
Declaration
public static Image CannyEdgeDetection(Image<Rgb24> bmp, byte lowThreshold, byte highThreshold)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
bmp |
|
Byte |
lowThreshold |
|
Byte |
highThreshold |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static Image<T> CombineImagesInLine<T>(Color fill, params Image<T>[] images)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Color |
fill |
|
SixLabors.ImageSharp.Image<T>[] |
images |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
|
Type Parameters
|
Improve this Doc
View Source
Stacks the passed images one on top of the other.
Assumes that all images have the same width.
Declaration
public static Image<T> CombineImagesInLine<T>(params Image<T>[] images)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<T>[] |
images |
An array of images.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
A single image.
|
Type Parameters
|
Improve this Doc
View Source
Stacks the passed images one on top of the other.
Declaration
public static Image<T> CombineImagesInLine<T>(List<Image<T>> list)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
List<SixLabors.ImageSharp.Image<T>> |
list |
A list of images.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
A single image.
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public static Image<T> CombineImagesVertically<T>(params Image<T>[] images)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<T>[] |
images |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
|
Type Parameters
|
Improve this Doc
View Source
Stacks the passed images one on top of the other.
Adjust image to widest of them.
Declaration
public static Image<T> CombineImagesVertically<T>(List<Image<T>> list)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
List<SixLabors.ImageSharp.Image<T>> |
list |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
|
Type Parameters
|
Improve this Doc
View Source
Declaration
public static Image<T> CombineImagesVertically<T>(List<Image<T>> list, int maxWidth)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
List<SixLabors.ImageSharp.Image<T>> |
list |
|
Int32 |
maxWidth |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
|
Type Parameters
|
Improve this Doc
View Source
Stacks the passed images one on top of the other.
Declaration
public static Image<T> CombineImagesVertically<T>(int? maximumWidth, Image<T>[] array)
where T : struct, IPixel<T>
Parameters
Type |
Name |
Description |
Nullable<Int32> |
maximumWidth |
The maximum width of the output images.
|
SixLabors.ImageSharp.Image<T>[] |
array |
An array of Image.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<T> |
A single image.
|
Type Parameters
|
Improve this Doc
View Source
this method assumes that all the values in the passed matrix are between zero & one.
Will truncate all values > 1 to 1.0.
Spurious results will occur if have negative values or values > 1.
Should NormaliseMatrixValues matrix first if these conditions do not apply.
Declaration
public static double[, ] ContrastStretching(double[, ] M, double fractionalStretching)
Parameters
Type |
Name |
Description |
Double[,] |
M |
|
Double |
fractionalStretching |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] Convolve(double[, ] matrix, Kernal name)
Parameters
Returns
|
Improve this Doc
View Source
Detect high intensity / high energy regions in an image using blurring
followed by rules involving positive and negative gradients.
Declaration
public static double[, ] DetectHighEnergyRegions1(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Detect high intensity / high energy regions in an image using blurring
followed by bandwise thresholding.
Declaration
public static double[, ] DetectHighEnergyRegions3(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Declaration
public static Tuple<int, double> DetectLine(double[, ] m, int row, int col, int lineLength, double centreThreshold, int resolutionAngle)
Parameters
Returns
|
Improve this Doc
View Source
Returns an image of an array of the passed colour patches.
Declaration
public static Image DrawColourChart(int width, int ht, Color[] colorArray)
Parameters
Type |
Name |
Description |
Int32 |
width |
|
Int32 |
ht |
|
SixLabors.ImageSharp.Color[] |
colorArray |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static void DrawMatrix(byte[, ] mBytes, string pathName)
Parameters
Type |
Name |
Description |
Byte[,] |
mBytes |
|
String |
pathName |
|
|
Improve this Doc
View Source
Draws matrix and save image.
Declaration
public static void DrawMatrix(double[] vector, string pathName)
Parameters
Type |
Name |
Description |
Double[] |
vector |
the data.
|
String |
pathName |
|
|
Improve this Doc
View Source
Draws matrix but automatically determines the scale to fit 1000x1000 pixel image.
Declaration
public static Image<Rgb24> DrawMatrix(double[, ] matrix, bool doScale)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static void DrawMatrix(double[, ] matrix, double lowerBound, double upperBound, string pathName)
Parameters
|
Improve this Doc
View Source
Declaration
public static void DrawMatrix(double[, ] matrix, int cellXpixels, int cellYpixels, string pathName)
Parameters
|
Improve this Doc
View Source
Draws matrix and save image.
Declaration
public static void DrawMatrix(double[, ] matrix, string pathName)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
String |
pathName |
|
|
Improve this Doc
View Source
Draws colour matrix but automatically determines the scale to fit 1000x1000 pixel image.
Declaration
public static Image DrawMatrixInColour(double[, ] matrix, bool doScale)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static Image DrawMatrixInColour(double[, ] matrix, int xPixelsPerCell, int yPixelsPerCell)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Int32 |
xPixelsPerCell |
|
Int32 |
yPixelsPerCell |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static void DrawMatrixInColour(double[, ] matrix, string pathName, bool doScale)
Parameters
|
Improve this Doc
View Source
Draws matrix according to user defined scale.
Declaration
public static Image<Rgb24> DrawMatrixInGrayScale(double[, ] matrix, int xPixelsPerCell, int yPixelsPerCell, bool reverse)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
Int32 |
xPixelsPerCell |
X axis scale - pixels per cell.
|
Int32 |
yPixelsPerCell |
Y axis scale - pixels per cell.
|
Boolean |
reverse |
determines black on white or white on black.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Draws matrix without normkalising the values in the matrix.
Assume some form of normalisation already done.
Declaration
public static Image<Rgb24> DrawMatrixWithoutNormalisation(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> DrawMatrixWithoutNormalisationGreenScale(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Draws matrix after first normalising the data.
Declaration
public static Image<Rgb24> DrawNormalisedMatrix(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> DrawNormalisedMatrix(double[, ] matrix, double lowerBound, double upperBound)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Draws matrix after first normalising the data.
Declaration
public static Image<Rgb24> DrawReversedMatrix(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Normalises the matrix between zero and one.
Then draws the reversed matrix and saves image to passed path.
Declaration
public static void DrawReversedMatrix(double[, ] matrix, string pathName)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
String |
pathName |
|
|
Improve this Doc
View Source
Draws matrix without normkalising the values in the matrix.
Assume some form of normalisation already done.
Declaration
public static Image<Rgb24> DrawReversedMatrixWithoutNormalisation(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
the data.
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Normalises the matrix between zero and one.
Then draws the reversed matrix and saves image to passed path.
Declaration
public static void DrawReversedMDNMatrix(Matrix<double> matrix, string pathName)
Parameters
Type |
Name |
Description |
MathNet.Numerics.LinearAlgebra.Matrix<Double> |
matrix |
the data.
|
String |
pathName |
|
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> DrawRGBMatrix(double[, ] matrixR, double[, ] matrixG, double[, ] matrixB)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static Image DrawVectorInColour(double[] vector, int cellWidth)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
Declaration
public static Image DrawVectorInGrayScale(double[] vector, int cellWidth, int cellHeight)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image |
|
|
Improve this Doc
View Source
This method assumes that the vector has already been normalised by some means such that all values lie between 0.0 and 1.0.
Declaration
public static Image<Rgb24> DrawVectorInGrayScaleWithoutNormalisation(double[] vector, int cellWidth, int cellHeight, bool reverse)
Parameters
Type |
Name |
Description |
Double[] |
vector |
the vector of normalised values.
|
Int32 |
cellWidth |
the width of the image.
|
Int32 |
cellHeight |
the height of each image row.
|
Boolean |
reverse |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
assumes the y-axis has already been drawn already.
Therefore require an offset at bottom left to accommodate the width of the y-axis.
Declaration
public static Image<Rgb24> DrawXaxisScale(Image<Rgb24> image, int scaleHeight, double xInterval, double xTicInterval, int yScalePadding, int xOffset)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
image |
|
Int32 |
scaleHeight |
|
Double |
xInterval |
|
Double |
xTicInterval |
|
Int32 |
yScalePadding |
|
Int32 |
xOffset |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Draws horizontal gridlines on Image.
Declaration
public static Image<Rgb24> DrawYaxisScale(Image<Rgb24> image, int scaleWidth, double yInterval, double yTicInterval, int yOffset)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
image |
|
Int32 |
scaleWidth |
|
Double |
yInterval |
|
Double |
yTicInterval |
|
Int32 |
yOffset |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public static double[, ] FillGaps(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
Returns matrix after convolving with Gaussian blur.
The blurring is in 2D, first blurred in x-direction, then in y-direction.
Blurring function is {0.006,0.061, 0.242,0.383,0.242,0.061,0.006}.
Declaration
public static double[, ] GaussianBlur_5cell(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Declaration
public static Dictionary<Color, double> GetColorHistogramNormalized(Image<Rgb24> image, Rectangle? region = default(Rectangle? ))
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
image |
|
Nullable<SixLabors.ImageSharp.Rectangle> |
region |
|
Returns
|
Improve this Doc
View Source
returns a palette of a variety of coluor.
Used for displaying clusters identified by colour.
Declaration
public static List<Pen> GetColorPalette(int paletteSize)
Parameters
Type |
Name |
Description |
Int32 |
paletteSize |
|
Returns
Type |
Description |
List<SixLabors.ImageSharp.Drawing.Processing.Pen> |
|
|
Improve this Doc
View Source
Returns an image of the data matrix.
Normalises the values from min->max to 0->1.
Thus the grey-scale image pixels will range from 0 to 255.
This method was originally written to draw sonograms,
hence the avoidance of outliers and references to freq bins.
Perhaps this method should be put back in BaseSonogram.cs.
Declaration
public static Image<Rgb24> GetMatrixImage(double[, ] data)
Parameters
Type |
Name |
Description |
Double[,] |
data |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Returns a small matrix of pixels chosen randomly from the passed matrix, m.
The row and column is chosen randomly and then the reuired number of consecutive pixels is transferred.
These noise matrices are used to obtain statistics for cross-correlation coefficients.
Declaration
public static double[, ] GetNoise(double[, ] m, int kRows, int kCols)
Parameters
Returns
|
Improve this Doc
View Source
returns a palette of a variety of coluor.
Used for displaying clusters identified by colour.
Declaration
public static List<Pen> GetRedGradientPalette()
Returns
Type |
Description |
List<SixLabors.ImageSharp.Drawing.Processing.Pen> |
|
|
Improve this Doc
View Source
returns a colour array of 256 gray scale values.
Declaration
public static Color[] GrayScale()
Returns
Type |
Description |
SixLabors.ImageSharp.Color[] |
|
|
Improve this Doc
View Source
returns a colour array of 256 green scale values.
Declaration
public static Color[] GreenScale()
Returns
Type |
Description |
SixLabors.ImageSharp.Color[] |
|
|
Improve this Doc
View Source
reads the intensity of a grey scale image into a matrix of double.
Assumes gray scale is 0-255 and that color.R = color.G = color.B.
Declaration
public static double[, ] GreyScaleImage2Matrix(Image<Rgb24> Image)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
Image |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] GridFilter(double[, ] m, Kernal name)
Parameters
Returns
|
Improve this Doc
View Source
This modifies Sobel's ridge detection by using mexican hat filter.
The mexican hat is the difference of two gaussians on different scales.
DoG is used in image processing to find ridges.
MATRIX must be square with odd number dimensions.
Declaration
public static void MexicanHat5X5RidgeDetection(double[, ] m, out bool isRidge, out double magnitude, out int direction)
Parameters
|
Improve this Doc
View Source
returns the upper and lower thresholds for the pass upper and lower percentile cuts of matrix M
Used for some of the noise reduciton algorithms.
Declaration
public static void PercentileThresholds(double[, ] M, double lowerCut, double upperCut, out double lowerThreshold, out double upperThreshold)
Parameters
|
Improve this Doc
View Source
Declaration
public static Image<Rgb24> ReadImage2Image(string fileName)
Parameters
Type |
Name |
Description |
String |
fileName |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Reverses a 256 grey scale image.
Declaration
public static double[, ] Reverse256GreyScale(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
Returns a binary matrix containing high energy lines in the oriignal spectrogram.
Declaration
public static double[, ] Shapes_lines(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Returns a binary matrix containing high energy lines in the original spectrogram
calculates the threshold bandwise.
Declaration
public static double[, ] Shapes_lines_bandwise(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] Shapes_RemoveSmall(double[, ] m, int minRowWidth, int minColWidth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] Shapes_RemoveSmallUnattached(double[, ] m, int minRowWidth, int minColWidth)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] Shapes3(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
Declaration
public static ArrayList Shapes4(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
Returns an ArrayList of rectabgular shapes that represent acoustic events / syllables in the sonogram.
Declaration
public static ArrayList Shapes5(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] Signal2NoiseRatio_BandWise(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Calculates the local signal to noise ratio in the neighbourhood of side=window
SNR is defined as local mean / local std dev.
Must check that the local std dev is not too small.
Declaration
public static double[, ] Signal2NoiseRatio_Local(double[, ] matrix, int window)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void Sobel5X5CornerDetection(double[, ] m, out bool isCorner, out double magnitude, out double direction)
Parameters
|
Improve this Doc
View Source
Declaration
public static double[] Sobel5X5RidgeDetection(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
This version of Sobel's edge detection taken from Graig A. Lindley, Practical Image Processing which includes C code.
HOWEVER MODIFED TO PROCESS 5x5 matrix
MATRIX must be square with odd number dimensions.
Declaration
public static void Sobel5X5RidgeDetection(double[, ] m, out bool isRidge, out double magnitude, out int direction)
Parameters
|
Improve this Doc
View Source
Declaration
public static double[, ] SobelEdgeDetection(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
This version of Sobel's edge detection taken from Graig A. Lindley, Practical Image Processing
which includes C code.
Declaration
public static double[, ] SobelEdgeDetection(double[, ] m, double relThreshold)
Parameters
Returns
|
Improve this Doc
View Source
This version of Sobel's edge detection taken from Graig A. Lindley, Practical Image Processing
which includes C code.
Declaration
public static double[, ] SobelRidgeDetection(double[, ] m)
Parameters
Type |
Name |
Description |
Double[,] |
m |
|
Returns
|
Improve this Doc
View Source
This version of Sobel's edge detection taken from Graig A. Lindley, Practical Image Processing
which includes C code.
HOWEVER MODIFED TO PROCESS 5x5 matrix
MATRIX must be square with odd number dimensions.
Declaration
public static void SobelRidgeDetection(double[, ] m, out bool isRidge, out double magnitude, out double direction)
Parameters
|
Improve this Doc
View Source
Declaration
public static double[, ] SubtractAverage_BandWise(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
This method is a TEST method for Canny edge detection - see below.
Declaration
public static void TestCannyEdgeDetection()
|
Improve this Doc
View Source
Declaration
public static double[, ] TrimPercentiles(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] WienerFilter(double[, ] matrix)
Parameters
Type |
Name |
Description |
Double[,] |
matrix |
|
Returns
|
Improve this Doc
View Source
Declaration
public static double[, ] WienerFilter(double[, ] matrix, int NH)
Parameters
Returns
|
Improve this Doc
View Source
Declaration
public static void WriteImage2File(Image binaryBmp, string opPath)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image |
binaryBmp |
|
String |
opPath |
|
Extension Methods