Show / Hide Table of Contents

Class Binarizer

Various binarization methods (ATTENTION : The methods of this class is not implemented in OpenCV)

Inheritance
System.Object
Binarizer
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OpenCvSharp.Extensions
Assembly: OpenCvSharp.Extensions.dll
Syntax
public static class Binarizer

Methods

| Improve this Doc View Source

Bernsen(Mat, Mat, Int32, Byte, Byte)

Binarizes by Bernsen's method

Declaration
public static void Bernsen(Mat src, Mat dst, int kernelSize, byte constrastMin, byte bgThreshold)
Parameters
Type Name Description
Mat src

Input image

Mat dst

Output image

System.Int32 kernelSize

Window size

System.Byte constrastMin

Adequate coefficient

System.Byte bgThreshold

Adequate coefficient

| Improve this Doc View Source

Niblack(Mat, Mat, Int32, Double)

Binarizes by Niblack's method (This is faster but memory-hogging)

Declaration
public static void Niblack(Mat src, Mat dst, int kernelSize, double k)
Parameters
Type Name Description
Mat src

Input image

Mat dst

Output image

System.Int32 kernelSize

Window size

System.Double k

Adequate coefficient

| Improve this Doc View Source

Nick(Mat, Mat, Int32, Double)

Binarizes by Nick's method

Declaration
public static void Nick(Mat src, Mat dst, int kernelSize, double k)
Parameters
Type Name Description
Mat src

Input image

Mat dst

Output image

System.Int32 kernelSize

Window size

System.Double k

Adequate coefficient

| Improve this Doc View Source

Sauvola(Mat, Mat, Int32, Double, Double)

Binarizes by Sauvola's method (This is faster but memory-hogging)

Declaration
public static void Sauvola(Mat src, Mat dst, int kernelSize, double k, double r)
Parameters
Type Name Description
Mat src

Input image

Mat dst

Output image

System.Int32 kernelSize

Window size

System.Double k

Adequate coefficient

System.Double r

Adequate coefficient

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX