Add k-means python test, fix loading images in calibration test

This commit is contained in:
Vladislav Sovrasov
2016-01-28 18:50:09 +03:00
parent 5625d79508
commit 56571561b4
4 changed files with 76 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class texture_flow_test(NewOpenCVTests):
points = np.dstack( np.mgrid[d/2:w:d, d/2:h:d] ).reshape(-1, 2)
textureVectors = []
for x, y in np.int32(points):
textureVectors.append(np.int32(flow[y, x]*d))