From 3a6d248bee93df66fc92c593d8a6ba6cc0214c95 Mon Sep 17 00:00:00 2001 From: Ilya Lavrenov Date: Tue, 17 Dec 2013 17:41:28 +0400 Subject: [PATCH] typo --- modules/core/doc/operations_on_arrays.rst | 2 +- modules/core/src/dxt.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/doc/operations_on_arrays.rst b/modules/core/doc/operations_on_arrays.rst index a312818daf..8c01a1010b 100644 --- a/modules/core/doc/operations_on_arrays.rst +++ b/modules/core/doc/operations_on_arrays.rst @@ -929,7 +929,7 @@ So, the function chooses an operation mode depending on the flags and size of th * When ``DFT_COMPLEX_OUTPUT`` is set, the output is a complex matrix of the same size as input. - * When ``DFT_COMPLEX_OUTPUT`` is not set, the output is a real matrix of the same size as input. In case of 2D transform, it uses the packed format as shown above. In case of a single 1D transform, it looks like the first row of the matrix above. In case of multiple 1D transforms (when using the ``DCT_ROWS`` flag), each row of the output matrix looks like the first row of the matrix above. + * When ``DFT_COMPLEX_OUTPUT`` is not set, the output is a real matrix of the same size as input. In case of 2D transform, it uses the packed format as shown above. In case of a single 1D transform, it looks like the first row of the matrix above. In case of multiple 1D transforms (when using the ``DFT_ROWS`` flag), each row of the output matrix looks like the first row of the matrix above. * If the input array is complex and either ``DFT_INVERSE`` or ``DFT_REAL_OUTPUT`` are not set, the output is a complex array of the same size as input. The function performs a forward or inverse 1D or 2D transform of the whole input array or each row of the input array independently, depending on the flags ``DFT_INVERSE`` and ``DFT_ROWS``. diff --git a/modules/core/src/dxt.cpp b/modules/core/src/dxt.cpp index e6fed4eae7..033bf45120 100644 --- a/modules/core/src/dxt.cpp +++ b/modules/core/src/dxt.cpp @@ -2284,7 +2284,7 @@ void cv::dct( InputArray _src0, OutputArray _dst, int flags ) DCTFunc dct_func = dct_tbl[(int)inv + (depth == CV_64F)*2]; - if( (flags & DFT_ROWS) || src.rows == 1 || + if( (flags & DCT_ROWS) || src.rows == 1 || (src.cols == 1 && (src.isContinuous() && dst.isContinuous()))) { stage = end_stage = 0; @@ -2304,7 +2304,7 @@ void cv::dct( InputArray _src0, OutputArray _dst, int flags ) { len = src.cols; count = src.rows; - if( len == 1 && !(flags & DFT_ROWS) ) + if( len == 1 && !(flags & DCT_ROWS) ) { len = src.rows; count = 1;