Class OtsuThresholder
Inheritance
OtsuThresholder
Assembly: TowseyLibrary.dll
Syntax
public class OtsuThresholder
Constructors
|
Improve this Doc
View Source
OtsuThresholder()
Declaration
Methods
|
Improve this Doc
View Source
CalculateThreshold(Byte[])
Declaration
public int CalculateThreshold(byte[] srcData)
Parameters
Type |
Name |
Description |
Byte[] |
srcData |
|
Returns
|
Improve this Doc
View Source
CalculateThreshold(Byte[], out Byte[])
Declaration
public int CalculateThreshold(byte[] srcData, out byte[] monoData)
Parameters
Type |
Name |
Description |
Byte[] |
srcData |
|
Byte[] |
monoData |
|
Returns
|
Improve this Doc
View Source
Declaration
public static byte[, ] ConvertColourImageToGreyScaleMatrix(Image<Rgb24> image)
Parameters
Type |
Name |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
image |
|
Returns
|
Improve this Doc
View Source
ConvertMatrixToGreyScaleImage(Byte[,])
Declaration
public static Image<Rgb24> ConvertMatrixToGreyScaleImage(byte[, ] M)
Parameters
Type |
Name |
Description |
Byte[,] |
M |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
ConvertMatrixToReversedGreyScaleImage(Byte[,])
Declaration
public static Image<Rgb24> ConvertMatrixToReversedGreyScaleImage(byte[, ] M)
Parameters
Type |
Name |
Description |
Byte[,] |
M |
|
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
DoLocalOtsuThresholding(Double[,], out Byte[,])
Declaration
public static void DoLocalOtsuThresholding(double[, ] m, out byte[, ] opByteMatrix)
Parameters
Type |
Name |
Description |
Double[,] |
m |
The spectral sonogram passes as matrix of doubles.
|
Byte[,] |
opByteMatrix |
|
|
Improve this Doc
View Source
Execute(OtsuThresholder.Arguments)
Declaration
public static void Execute(OtsuThresholder.Arguments arguments)
Parameters
|
Improve this Doc
View Source
Declaration
public static void GetGlobalOtsuThreshold(double[, ] inputMatrix, out byte[, ] opByteMatrix, out double opThreshold, out Image<Rgb24> histogramImage)
Parameters
Type |
Name |
Description |
Double[,] |
inputMatrix |
|
Byte[,] |
opByteMatrix |
|
Double |
opThreshold |
|
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
histogramImage |
|
|
Improve this Doc
View Source
GetHistData()
Declaration
public int[] GetHistData()
Returns
|
Improve this Doc
View Source
getMaxLevelValue()
Declaration
public int getMaxLevelValue()
Returns
|
Improve this Doc
View Source
GetOtsuThreshold(Byte[,], out Byte[,], out Int32)
Declaration
public static void GetOtsuThreshold(byte[, ] matrix, out byte[, ] m2, out int threshold)
Parameters
|
Improve this Doc
View Source
Declaration
public static void GetOtsuThreshold(byte[, ] matrix, out byte[, ] m2, out int threshold, out Image<Rgb24> histogramImage)
Parameters
Type |
Name |
Description |
Byte[,] |
matrix |
|
Byte[,] |
m2 |
|
Int32 |
threshold |
|
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
histogramImage |
|
|
Improve this Doc
View Source
getThreshold()
Declaration
public int getThreshold()
Returns
Extension Methods