mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
Merge branch '4.x' into '5.x'
This commit is contained in:
@@ -300,8 +300,8 @@ Mat randomMat(RNG& rng, Size size, int type, double minVal, double maxVal, bool
|
||||
Mat randomMat(RNG& rng, const vector<int>& size, int type, double minVal, double maxVal, bool useRoi);
|
||||
void add(const Mat& a, double alpha, const Mat& b, double beta,
|
||||
Scalar gamma, Mat& c, int ctype, bool calcAbs=false);
|
||||
void multiply(const Mat& a, const Mat& b, Mat& c, double alpha=1);
|
||||
void divide(const Mat& a, const Mat& b, Mat& c, double alpha=1);
|
||||
void multiply(const Mat& a, const Mat& b, Mat& c, double alpha=1, int ctype=-1);
|
||||
void divide(const Mat& a, const Mat& b, Mat& c, double alpha=1, int ctype=-1);
|
||||
|
||||
void convert(const Mat& src, cv::OutputArray dst, int dtype, double alpha=1, double beta=0);
|
||||
void copy(const Mat& src, Mat& dst, const Mat& mask=Mat(), bool invertMask=false);
|
||||
@@ -611,7 +611,7 @@ public:
|
||||
};
|
||||
|
||||
// get RNG to generate random input data for a test
|
||||
RNG& get_rng() { return rng; }
|
||||
RNG& get_rng() { return cv::theRNG(); }
|
||||
|
||||
// returns the current error code
|
||||
TS::FailureCode get_err_code() { return TS::FailureCode(current_test_info.code); }
|
||||
@@ -629,7 +629,6 @@ public:
|
||||
protected:
|
||||
|
||||
// these are allocated within a test to try to keep them valid in case of stack corruption
|
||||
RNG rng;
|
||||
|
||||
// information about the current test
|
||||
TestInfo current_test_info;
|
||||
|
||||
@@ -21317,6 +21317,13 @@ AssertionResult CmpHelperEQFailure(const char* lhs_expression,
|
||||
false);
|
||||
}
|
||||
|
||||
// See https://github.com/opencv/opencv/issues/25674
|
||||
// Disable optimization for workaround to mis-branch for GCC14.
|
||||
#if defined(__GNUC__) && (__GNUC__ == 14)
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("O0")
|
||||
#endif
|
||||
|
||||
// The helper function for {ASSERT|EXPECT}_EQ.
|
||||
template <typename T1, typename T2>
|
||||
AssertionResult CmpHelperEQ(const char* lhs_expression,
|
||||
@@ -21330,6 +21337,10 @@ AssertionResult CmpHelperEQ(const char* lhs_expression,
|
||||
return CmpHelperEQFailure(lhs_expression, rhs_expression, lhs, rhs);
|
||||
}
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ == 14)
|
||||
#pragma GCC pop_options
|
||||
#endif
|
||||
|
||||
// With this overloaded version, we allow anonymous enums to be used
|
||||
// in {ASSERT|EXPECT}_EQ when compiled with gcc 4, as anonymous enums
|
||||
// can be implicitly cast to BiggestInt.
|
||||
|
||||
Reference in New Issue
Block a user