8#ifndef META_OCEAN_TEST_TESTCV_TEST_FREQUENCY_ANALYSIS_H
9#define META_OCEAN_TEST_TESTCV_TEST_FREQUENCY_ANALYSIS_H
This class implements tests for the FrequencyAnalysis class (FFT-based image2frequencies / frequencie...
Definition TestFrequencyAnalysis.h:32
static bool testConstantInputSpectrumStress(const double testDuration, Worker &worker)
Stress test: a constant-input frame produces a frequency spectrum with a single non-zero DC component...
static bool testRoundTripStress(const double testDuration, Worker &worker)
Stress test: round-trip identity holds for many random parameter combinations (sizes/pixelFormats/pad...
static bool testMagnitudeFrame(const double testDuration, Worker &worker)
Tests that magnitudeFrame() returns a valid Y8 frame of the requested size (basic shape/sanity invari...
static bool testParseval(const double testDuration, Worker &worker)
Tests Parseval's theorem for the discrete Fourier transform: sum(|f(t)|^2) == (1/N) * sum(|F(k)|^2).
static bool testWorkerEquivalenceStress(const double testDuration, Worker &worker)
Stress test: large random frames and many channel counts; verifies worker vs single-thread output equ...
static bool testRoundTripIdentity(const double testDuration, Worker &worker)
Tests image2frequencies / frequencies2image round-trip identity: applying the FFT followed by the inv...
static bool testDCComponent(const double testDuration, Worker &worker)
Tests that the DC component of the frequency spectrum equals the sum of all pixel values for that cha...
static bool testPaddingInvarianceStress(const double testDuration, Worker &worker)
Stress test: source frames with random padding produce identical frequency output to padding-free fra...
static bool test(const double testDuration, Worker &worker, const TestSelector &selector=TestSelector())
Starts all tests of the FrequencyAnalysis class.
This class implements a test selector that parses test function strings and determines which tests sh...
Definition TestSelector.h:51
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
The namespace covering the entire Ocean framework.
Definition Accessor.h:15