Commit 34b05794 authored by Max Khardin's avatar Max Khardin

Fix source code indents

parent 214e9d4b
...@@ -203,48 +203,46 @@ PERF_TEST_P(Size_MatType, subtractScalar, TYPICAL_MATS_CORE_ARITHM) ...@@ -203,48 +203,46 @@ PERF_TEST_P(Size_MatType, subtractScalar, TYPICAL_MATS_CORE_ARITHM)
SANITY_CHECK(c, 1e-8); SANITY_CHECK(c, 1e-8);
} }
PERF_TEST_P(Size_MatType, multiply, TYPICAL_MATS_CORE_ARITHM) PERF_TEST_P(Size_MatType, multiply, TYPICAL_MATS_CORE_ARITHM)
{ {
Size sz = get<0>(GetParam()); Size sz = get<0>(GetParam());
int type = get<1>(GetParam()); int type = get<1>(GetParam());
cv::Mat a = Mat(sz, type); cv::Mat a = Mat(sz, type);
cv::Mat b = Mat(sz, type); cv::Mat b = Mat(sz, type);
cv::Mat c = Mat(sz, type); cv::Mat c = Mat(sz, type);
declare.in(a, b, WARMUP_RNG).out(c);
if (CV_MAT_DEPTH(type) == CV_32S) declare.in(a, b, WARMUP_RNG).out(c);
{ if (CV_MAT_DEPTH(type) == CV_32S)
//According to docs, saturation is not applied when result is 32bit integer {
a /= (2 << 16); //According to docs, saturation is not applied when result is 32bit integer
b /= (2 << 16); a /= (2 << 16);
} b /= (2 << 16);
}
TEST_CYCLE() multiply(a, b, c); TEST_CYCLE() multiply(a, b, c);
SANITY_CHECK(c, 1e-8); SANITY_CHECK(c, 1e-8);
} }
PERF_TEST_P(Size_MatType, multiplyScale, TYPICAL_MATS_CORE_ARITHM) PERF_TEST_P(Size_MatType, multiplyScale, TYPICAL_MATS_CORE_ARITHM)
{ {
Size sz = get<0>(GetParam()); Size sz = get<0>(GetParam());
int type = get<1>(GetParam()); int type = get<1>(GetParam());
cv::Mat a = Mat(sz, type); cv::Mat a = Mat(sz, type);
cv::Mat b = Mat(sz, type); cv::Mat b = Mat(sz, type);
cv::Mat c = Mat(sz, type); cv::Mat c = Mat(sz, type);
double scale = 0.5; double scale = 0.5;
declare.in(a, b, WARMUP_RNG).out(c); declare.in(a, b, WARMUP_RNG).out(c);
if (CV_MAT_DEPTH(type) == CV_32S) if (CV_MAT_DEPTH(type) == CV_32S)
{ {
//According to docs, saturation is not applied when result is 32bit integer //According to docs, saturation is not applied when result is 32bit integer
a /= (2 << 16); a /= (2 << 16);
b /= (2 << 16); b /= (2 << 16);
} }
TEST_CYCLE() multiply(a, b, c, scale); TEST_CYCLE() multiply(a, b, c, scale);
SANITY_CHECK(c, 1e-8); SANITY_CHECK(c, 1e-8);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment