Skip to main content
. 2014 Dec 2;8:124. doi: 10.1186/s12918-014-0124-0

Table 1.

Mapping between subalgorithms employed by Algorithm ?? and OpenCV functions

Subalgorithm signature OpenCV function signature
ChangeBrightnessAndContrast(image, alpha, beta) convertTo(image, -1, alpha, beta)
MorphologicalCloseOperation(image, morphCloseNrOfIter) morphologyEx(image, outputImage, MORPH_CLOSE, Mat(), Point(-1, -1), morphCloseNrOfIter)
GaussianBlur(image, kernelSize, standardDev) GaussianBlur(image, outputImage, kernelSize, standardDev)
Threshold(image, thresholdValue) threshold(image, outputImage, thresholdValue, 255 THRESH_BINARY)
DetectAndApproximateContours(image, approximationLevel) findContours(image, contours, contoursHierarchy, CV_ RETR_CCOMP, CV_CHAIN_APPROX_NONE, Point())
approxPolyDP(image, outputImage, approximationLevel, true)

The left column describes the signature of the subalgorithms employed by Algorithm ??. The right column describes the signature of the corresponding OpenCV function(s).