Fixed a small but serious bug in cvCvtColor.

This commit is contained in:
sccolbert
2009-11-09 22:57:14 +01:00
parent 0e96a75e0e
commit 30048f2414
+1 -1
View File
@@ -1821,7 +1821,7 @@ def cvCvtColor(np.ndarray src, int code):
cdef int out_channels = <int>conversion_params[1]
src_dtypes = conversion_params[2]
assert_nchannels(src, src_channels)
assert_nchannels(src, [src_channels])
assert_dtype(src, src_dtypes)
cdef np.ndarray out