projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f760f
)
fixed random failures in Core_DFT.complex_output2 test (the case of input_mat.cols...
author
Vadim Pisarevsky
<vadim.pisarevsky@gmail.com>
Tue, 5 May 2015 17:31:30 +0000
(20:31 +0300)
committer
Vadim Pisarevsky
<vadim.pisarevsky@gmail.com>
Tue, 5 May 2015 17:31:30 +0000
(20:31 +0300)
modules/core/src/dxt.cpp
patch
|
blob
|
history
diff --git
a/modules/core/src/dxt.cpp
b/modules/core/src/dxt.cpp
index
3d3d589
..
e3fd0e4
100644
(file)
--- a/
modules/core/src/dxt.cpp
+++ b/
modules/core/src/dxt.cpp
@@
-1089,11
+1089,12
@@
RealDFT( const T* src, T* dst, int n, int nf, int* factors, const int* itab,
}
}
- if( complex_output && (
n & 1) == 0
)
+ if( complex_output && (
(n & 1) == 0 || n == 1)
)
{
dst[-1] = dst[0];
dst[0] = 0;
- dst[n] = 0;
+ if( n > 1 )
+ dst[n] = 0;
}
}