This commit is contained in:
luoliang
2022-07-22 17:14:48 +08:00
commit b5c1dcf4d8
33 changed files with 4992 additions and 0 deletions

27
acl/test/test_common.hpp Normal file
View File

@@ -0,0 +1,27 @@
#ifndef __OPENCV_TEST_COMMON_HPP__
#define __OPENCV_TEST_COMMON_HPP__
#include "test_precomp.hpp"
typedef enum TestDatatype {
INT = 1,
FLOAT
} TestDatatype;
class CV_EXPORTS Common_Test {
public:
Common_Test();
~Common_Test();
CV_EXPORTS bool Test_Diff(const aclMat& aclmat, const Mat& mat, ALIGNMENT config = ALIGNMENT::MEMORY_UNALIGNED);
CV_EXPORTS bool Test_Diff(const aclMat& aclmat, const aclMat& aclmat_other);
CV_EXPORTS bool Test_Diff(const Mat& mat, const Mat& mat_other);
CV_EXPORTS void MatShow(Mat &m, string str);
CV_EXPORTS void StatShow(Mat &mat_src, aclMat &aclmat_dst);
CV_EXPORTS void PrintLog(const string& funcname, int type);
CV_EXPORTS size_t RandDom_(int config = 0xff);
CV_EXPORTS bool SetDataRange(Mat &src, int dataRange = 0xff);
};
#endif