mirror of https://github.com/opencv/opencv.git
Fixed a valgrind 'Conditional jump or move depends on uninitialised value(s)' on cv::kmeans(...). The original code used points(sampleCount, 1, CV_32FC2), which confused generateCentersPP into thinking it is a 1 dimensional center, instead of 2. As a result it would set only the x variable and leave y unitialised.
parent
5327482b46
commit
601b7d1dd3
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue