Search Results for

    Show / Hide Table of Contents

    Class OtsuThresholder

    Go to following link for info on Otsu threshold http://www.labbookpages.co.uk/software/imgProc/otsuThreshold.html.

    Inheritance
    Object
    OtsuThresholder
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: TowseyLibrary
    Assembly: TowseyLibrary.dll
    Syntax
    public class OtsuThresholder

    Constructors

    | Improve this Doc View Source

    OtsuThresholder()

    Initializes a new instance of the OtsuThresholder class. CONSTRUCTOR.

    Declaration
    public OtsuThresholder()

    Methods

    | Improve this Doc View Source

    CalculateThreshold(Byte[])

    Declaration
    public int CalculateThreshold(byte[] srcData)
    Parameters
    Type Name Description
    Byte[] srcData
    Returns
    Type Description
    Int32
    | 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
    Type Description
    Int32
    | Improve this Doc View Source

    ConvertColourImageToGreyScaleMatrix(Image<Rgb24>)

    Declaration
    public static byte[, ] ConvertColourImageToGreyScaleMatrix(Image<Rgb24> image)
    Parameters
    Type Name Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> image
    Returns
    Type Description
    Byte[,]
    | 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
    Type Name Description
    OtsuThresholder.Arguments arguments
    | Improve this Doc View Source

    GetGlobalOtsuThreshold(Double[,], out Byte[,], out Double, out Image<Rgb24>)

    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
    Type Description
    Int32[]
    | Improve this Doc View Source

    getMaxLevelValue()

    Declaration
    public int getMaxLevelValue()
    Returns
    Type Description
    Int32
    | 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
    Type Name Description
    Byte[,] matrix
    Byte[,] m2
    Int32 threshold
    | Improve this Doc View Source

    GetOtsuThreshold(Byte[,], out Byte[,], out Int32, out Image<Rgb24>)

    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
    Type Description
    Int32

    Extension Methods

    ObjectExtensions.NotNull(Object)
    ObjectExtensions.AsArray<T>(T)
    ObjectExtensions.AsList<T>(T)
    ObjectExtensions.Wrap<T>(T)
    SystemExtensions.BinarySerialize(Object)
    ConfigFileExtensions.NotNull(Object, FileInfo, String, String)
    ConfigFileExtensions.ValidateNotNull(Object, String, String)
    ConfigFileExtensions.ValidateLessThan<T>(Object, Nullable<T>, String, Nullable<T>, String, String)
    ExtensionsXml.SerializeObject<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top