parent
f1055a7e91
commit
3a15152be5
6 changed files with 14 additions and 30 deletions
@ -1,19 +0,0 @@ |
||||
from __future__ import print_function |
||||
import cv2 as cv |
||||
from cv2 import testMatxPythonConverter |
||||
from tests_common import NewOpenCVTests |
||||
|
||||
|
||||
class MatxConverterTest(NewOpenCVTests): |
||||
def test_matxconverter(self): |
||||
samples = ['samples/data/lena.jpg', 'cv/cascadeandhog/images/mona-lisa.png'] |
||||
|
||||
for sample in samples: |
||||
img = self.get_sample(sample) |
||||
out = testMatxPythonConverter(img) |
||||
|
||||
|
||||
if __name__ == '__main__': |
||||
NewOpenCVTests.bootstrap() |
||||
|
||||
|
@ -1,9 +0,0 @@ |
||||
#include "precomp.hpp" |
||||
|
||||
namespace cv{ |
||||
void testMatxPythonConverter(InputArray _src, OutputArray _dst, const Vec2d& defaultParam){ |
||||
printf("%f %f\n", defaultParam[0], defaultParam[1]); |
||||
Mat src = _src.getMat(); |
||||
src.copyTo(_dst); |
||||
} |
||||
} |
Loading…
Reference in new issue