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.
(cherry picked from commit 601b7d1dd3
)
pull/2570/head
parent
345b3b0bdd
commit
7c13d3277c
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue