mirror of
https://github.com/opencv/opencv.git
synced 2025-06-10 19:24:07 +08:00
fixed bug #1571
This commit is contained in:
parent
f1cf411ffe
commit
577dabb8bc
@ -65,7 +65,10 @@ int main( int argc, char* argv[])
|
|||||||
t = (double)getTickCount();
|
t = (double)getTickCount();
|
||||||
|
|
||||||
for (int i = 0; i < times; ++i)
|
for (int i = 0; i < times; ++i)
|
||||||
J = ScanImageAndReduceC(I.clone(), table);
|
{
|
||||||
|
cv::Mat clone_i = I.clone();
|
||||||
|
J = ScanImageAndReduceC(clone_i, table);
|
||||||
|
}
|
||||||
|
|
||||||
t = 1000*((double)getTickCount() - t)/getTickFrequency();
|
t = 1000*((double)getTickCount() - t)/getTickFrequency();
|
||||||
t /= times;
|
t /= times;
|
||||||
@ -76,7 +79,10 @@ int main( int argc, char* argv[])
|
|||||||
t = (double)getTickCount();
|
t = (double)getTickCount();
|
||||||
|
|
||||||
for (int i = 0; i < times; ++i)
|
for (int i = 0; i < times; ++i)
|
||||||
J = ScanImageAndReduceIterator(I.clone(), table);
|
{
|
||||||
|
cv::Mat clone_i = I.clone();
|
||||||
|
J = ScanImageAndReduceIterator(clone_i, table);
|
||||||
|
}
|
||||||
|
|
||||||
t = 1000*((double)getTickCount() - t)/getTickFrequency();
|
t = 1000*((double)getTickCount() - t)/getTickFrequency();
|
||||||
t /= times;
|
t /= times;
|
||||||
@ -87,7 +93,10 @@ int main( int argc, char* argv[])
|
|||||||
t = (double)getTickCount();
|
t = (double)getTickCount();
|
||||||
|
|
||||||
for (int i = 0; i < times; ++i)
|
for (int i = 0; i < times; ++i)
|
||||||
ScanImageAndReduceRandomAccess(I.clone(), table);
|
{
|
||||||
|
cv::Mat clone_i = I.clone();
|
||||||
|
ScanImageAndReduceRandomAccess(clone_i, table);
|
||||||
|
}
|
||||||
|
|
||||||
t = 1000*((double)getTickCount() - t)/getTickFrequency();
|
t = 1000*((double)getTickCount() - t)/getTickFrequency();
|
||||||
t /= times;
|
t /= times;
|
||||||
|
Loading…
Reference in New Issue
Block a user