extract test list into a separate .py file

This commit is contained in:
vrooomy
2026-08-04 13:46:33 +05:30
parent 5fcdb9b01e
commit 6e338fb03b
11 changed files with 671 additions and 683 deletions

View File

@@ -43,10 +43,8 @@ int numpyTypeToCvDepth(int typenum)
case NPY_UINT: return CV_32U;
case NPY_INT: return CV_32S;
case NPY_ULONGLONG: return CV_64U;
case NPY_LONGLONG: return CV_64S;
// 'long' is 64-bit on LP64 but 32-bit on LLP64, so decide by size, not by name.
case NPY_ULONG: return NPY_SIZEOF_LONG == 8 ? CV_64U : CV_32U;
case NPY_LONG: return NPY_SIZEOF_LONG == 8 ? CV_64S : CV_32S;
case NPY_HALF: return CV_16F;
case NPY_FLOAT: return CV_32F;
case NPY_DOUBLE: return CV_64F;