+------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | Function name and arguments | BUILD_TYPE=Debug | BUILD_TYPE=Release | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | | 160x120 | 320x240 | 640x480 | 1024x768 | 160x120 | 320x240 | 640x480 | 1024x768 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | All measures are in [ms] | | +================================================+=============+=============+=============+=============+=============+=============+=============+=============+ | | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | **Threshold** | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | binaryThreshold | 4.5 | 18 | 69 | 175 | 2.6 | 11 | 42 | 107 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | triangleThreshold | 8.1 | 32 | 124 | 315 | 3.9 | 17 | 66 | 168 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | OTSUThreshold | 11 | 35 | 127 | 318 | 6.5 | 20 | 69 | 171 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | toZeroThreshold | 4.5 | 18 | 69 | 175 | 2.6 | 11 | 42 | 107 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | **Blurring** | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | GaussianBlur 9x9 kernel | 223 | 875 | 3473 | 9042 | 34 | 128 | 504 | 1458 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | medianBlur 9x9 kernel | 141 | 608 | 2754 | 7505 | 56 | 273 | 1425 | 4091 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | bilateralFilter diameter=9 | 413 | 1628 | 6487 | 16386 | 138 | 535 | 2119 | 5293 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | **Morphological tranforms** | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | erode 5x5 kernel | 41 | 151 | 587 | 1493 | 6.2 | 22 | 84 | 214 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | dilate 5x5 kernel | 41 | 151 | 587 | 1494 | 6.2 | 22 | 84 | 214 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | open 5x5 kernel | 81 | 299 | 1163 | 2959 | 11 | 41 | 158 | 400 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | **Resize image** | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | resize linear interpolation | 10 | 39 | 150 | 378 | 3.8 | 16 | 59 | 147 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | resize cubic interpolation | 21 | 75 | 291 | 733 | 6.5 | 27 | 108 | 277 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | **Edge detection** | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | Sobel | 34 | 116 | 438 | 1129 | 14 | 50 | 187 | 497 | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | Canny | 81 | 260 | 894 | - | 32 | 108 | 375 | - | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | **Hough tranformations** | | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | HoughLines | 392 | 897 | - | - | 313 | 681 | 2121 | - | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+ | HoughLines probabilistic | 699 | 1652 | - | - | 608 | 1358 | 3766 | - | +------------------------------------------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+-------------+