1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 11:21:39 +08:00

added signal module

This commit is contained in:
amishutin
2024-01-11 14:43:22 +03:00
parent c7602a8f74
commit 105e514302
13 changed files with 696 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#ifndef OPENCV_SIGNAL_HPP
#define OPENCV_SIGNAL_HPP
/**
* @defgroup signal Signal Processing
* @{
* This module includes signal processing algorithms.
* @}
*/
#include "opencv2/core.hpp"
#include "opencv2/signal/signal_resample.hpp"
#endif

View File

@@ -0,0 +1,32 @@
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#ifndef OPENCV_SIGNAL_SIGNAL_RESAMPLE_HPP
#define OPENCV_SIGNAL_SIGNAL_RESAMPLE_HPP
#include <opencv2/core.hpp>
namespace cv {
namespace signal {
//! @addtogroup signal
//! @{
/** @brief Signal resampling
*
* @param[in] inputSignal Array with input signal.
* @param[out] outSignal Array with output signal
* @param[in] inFreq Input signal frequency.
* @param[in] outFreq Output signal frequency.
* Signal resampling implemented a cubic interpolation function and a filtering function based on Kaiser window and Bessel function, used to construct a FIR filter.
* Result is similar to `scipy.signal.resample`.
Detail: https://en.wikipedia.org/wiki/Sample-rate_conversion
*/
CV_EXPORTS_W void resampleSignal(InputArray inputSignal, OutputArray outSignal, const int inFreq, const int outFreq);
//! @}
}
}
#endif