Skip to content

Commit 221931e

Browse files
adsha-quicquic-xuezha
authored andcommitted
Adding fixes in histogram test
1 parent b1dd5a8 commit 221931e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/fastcv/perf/perf_histogram.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ PERF_TEST_P(HistogramPerfTest, run,
2323
cvtest::randUni(rng, src, Scalar::all(0), Scalar::all(255));
2424
Mat hist(1, 256, CV_32SC1);
2525

26-
for (; next(); )
26+
while (next())
2727
{
2828
startTimer();
2929
cv::fastcv::calcHist(src, hist);

modules/fastcv/src/histogram.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void calcHist( InputArray _src, OutputArray _hist )
6363

6464
cv::Mutex histogramLockInstance;
6565

66-
int nStripes = cv::getNumThreads();//(src.cols*src.rows)/(1<<8);
66+
int nStripes = cv::getNumThreads();
6767
int stripeHeight = src.rows / nStripes;
6868

6969
cv::parallel_for_(cv::Range(0, nStripes),

0 commit comments

Comments
 (0)