Normalize line endings and whitespace

This commit is contained in:
OpenCV Buildbot
2012-10-17 03:18:30 +04:00
committed by Andrey Kamaev
parent 69020da607
commit 04384a71e4
1516 changed files with 258846 additions and 258162 deletions

16
modules/python/test/test.py Normal file → Executable file
View File

@@ -845,7 +845,7 @@ class FunctionTests(OpenCVTests):
self.assertEqual(cv.Sum(M)[0], r * c)
def test_Threshold(self):
#""" directed test for bug 2790622 """
#""" directed test for bug 2790622 """
src = self.get_sample("samples/c/lena.jpg", 0)
results = set()
for i in range(10):
@@ -956,7 +956,7 @@ class AreaTests(OpenCVTests):
for j in range(10):
self.assert_(all([c == chr(1) for c in cs[j].tostring()]))
#
#
m = numpy.identity(4, dtype = numpy.float32)
m = cv.fromarray(m[:3, :3])
rvec = cv.CreateMat(3, 1, cv.CV_32FC1)
@@ -964,7 +964,7 @@ class AreaTests(OpenCVTests):
rvec[1,0] = 1
rvec[2,0] = 1
cv.Rodrigues2(rvec, m)
#print m
#print m
else:
print "SKIPPING test_numpy - numpy support not built"
@@ -1040,11 +1040,11 @@ class AreaTests(OpenCVTests):
cvm = cv.CreateMat(20, 10, cv.CV_32FC1)
def test_depths(self):
#""" Make sure that the depth enums are unique """
#""" Make sure that the depth enums are unique """
self.assert_(len(self.depths) == len(set(self.depths)))
def test_leak(self):
#""" If CreateImage is not releasing image storage, then the loop below should use ~4GB of memory. """
#""" If CreateImage is not releasing image storage, then the loop below should use ~4GB of memory. """
for i in range(64000):
a = cv.CreateImage((1024,1024), cv.IPL_DEPTH_8U, 1)
for i in range(64000):
@@ -1831,7 +1831,7 @@ class AreaTests(OpenCVTests):
#self.snap(img)
def test_create(self):
#""" CvCreateImage, CvCreateMat and the header-only form """
#""" CvCreateImage, CvCreateMat and the header-only form """
for (w,h) in [ (320,400), (640,480), (1024, 768) ]:
data = "z" * (w * h)
@@ -1910,7 +1910,7 @@ class AreaTests(OpenCVTests):
temp = cv.CloneImage(im)
for op in ["OPEN", "CLOSE", "GRADIENT", "TOPHAT", "BLACKHAT"]:
cv.MorphologyEx(im, dst, temp, e, eval("cv.CV_MOP_%s" % op), iter)
def test_getmat_nd(self):
# 1D CvMatND should yield (N,1) CvMat
matnd = cv.CreateMatND([13], cv.CV_8UC1)
@@ -2147,7 +2147,7 @@ class AreaTests(OpenCVTests):
print mat
def test_rand_PutText(self):
#""" Test for bug 2829336 """
#""" Test for bug 2829336 """
mat = cv.CreateMat( 64, 64, cv.CV_8UC1)
font = cv.InitFont(cv.CV_FONT_HERSHEY_SIMPLEX, 1, 1)
cv.PutText(mat, chr(127), (20, 20), font, 255)