mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Fixed a small but serious bug in cvCvtColor.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user