Table 1.
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).