Options
All
  • Public
  • Public/Protected
  • All
Menu

Base class for Contrast Limited Adaptive Histogram Equalization.

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Optional clipLimit: double

      Threshold for contrast limiting. Default. 40.0,

    • Optional totalGridSize: Size

      Size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles. tileGridSize defines the number of tiles in row and column. Default: Size(8, 8)

    Returns CLAHE

Methods

apply

  • apply(src: Mat, dst: Mat): void
  • Equalizes the histogram of a grayscale image using Contrast Limited Adaptive Histogram Equalization.

    Parameters

    • src: Mat

      Source image of type CV_8UC1 or CV_16UC1.

    • dst: Mat

      Destination image.

    Returns void

clear

  • clear(): void

clone

  • clone(...a: any[]): any

collectGarbage

  • collectGarbage(): void

delete

  • delete(...a: any[]): any

deleteLater

  • deleteLater(...a: any[]): any

empty

getClipLimit

getDefaultName

  • getDefaultName(): String

getTilesGridSize

  • getTilesGridSize(): Size

isAliasOf

  • isAliasOf(...a: any[]): any

isDeleted

  • isDeleted(...a: any[]): any

read

save

  • save(filename: String): String
  • Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).

    Parameters

    • filename: String

    Returns String

setClipLimit

  • setClipLimit(clipLimit: double): void

setTilesGridSize

  • setTilesGridSize(tileGridSize: Size): void
  • Sets size of grid for histogram equalization. Input image will be divided into equally sized rectangular tiles.

    Parameters

    • tileGridSize: Size

      defines the number of tiles in row and column.

    Returns void

write

Static load

  • load(arg0: any, filename: String, objname?: String): Ptr
  • This is static template method of [Algorithm]. It's usage is following (in the case of SVM):

      Ptr<SVM> svm = Algorithm::load<SVM>("my_svm_model.xml");

    In order to make this method work, the derived class must overwrite [Algorithm::read](const [FileNode]& fn).

    Parameters

    • arg0: any
    • filename: String

      Name of the file to read.

    • Optional objname: String

      The optional name of the node to read (if empty, the first top-level node will be used)

    Returns Ptr

Static loadFromString

  • loadFromString(arg1: any, strModel: String, objname?: String): Ptr
  • This is static template method of [Algorithm]. It's usage is following (in the case of SVM):

      Ptr<SVM> svm = Algorithm::loadFromString<SVM>(myStringModel);

    Parameters

    • arg1: any
    • strModel: String

      The string variable containing the model you want to load.

    • Optional objname: String

      The optional name of the node to read (if empty, the first top-level node will be used)

    Returns Ptr

Static read

  • This is static template method of [Algorithm]. It's usage is following (in the case of SVM):

      cv::FileStorage fsRead("example.xml", FileStorage::READ);
      Ptr<SVM> svm = Algorithm::read<SVM>(fsRead.root());

    In order to make this method work, the derived class must overwrite [Algorithm::read](const [FileNode]& fn) and also have static create() method without parameters (or with all the optional parameters)

    Parameters

    Returns Ptr

Generated using TypeDoc