This class implements a test for the Gaussian image blur filter.
More...
#include <TestFrameFilterGaussian.h>
|
static bool | test (const double testDuration, Worker &worker) |
| Tests all Gaussian filter functions.
|
|
static bool | testFilterSizeSigmaConversion () |
| Tests the conversion function between filter size and sigma.
|
|
static bool | testFilterFactors () |
| Tests the calculation of filter factors.
|
|
static bool | testExtremeDimensions (Worker &worker) |
| Tests extreme (small) frame dimensions.
|
|
template<typename T , typename TFilter > |
static bool | testExtremeDimensions (const unsigned int channels, const unsigned int filterSize, Worker &worker) |
| Tests extreme (small) frame dimensions.
|
|
static bool | testNormalDimensions (const double testDuration, Worker &worker) |
| Tests the performance of the frame filter for normal frame dimensions.
|
|
template<typename T , typename TFilter > |
static bool | testFilter (const unsigned int width, const unsigned int height, const unsigned int channels, const unsigned int filterSize, const double testDuration, Worker &worker) |
| Tests the filter function for a given image resolution.
|
|
template<typename T , typename TFilter > |
static bool | testReusableMemory (const double testDuration) |
| Tests the performance of the frame filter when using a reusable memory object.
|
|
template<typename T > |
static bool | testReusableMemoryComfort (const double testDuration) |
| Tests the performance of the frame filter when using a reusable memory object.
|
|
template<typename T , typename TFilter > |
static bool | testInplace (const double testDuration, Worker &worker) |
| Tests the in-place Gaussian blur filter.
|
|
This class implements a test for the Gaussian image blur filter.
◆ test()
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::test |
( |
const double |
testDuration, |
|
|
Worker & |
worker |
|
) |
| |
|
static |
Tests all Gaussian filter functions.
- Parameters
-
testDuration | Number of seconds for each test, with range (0, infinity) |
worker | The worker object |
- Returns
- True, if succeeded
◆ testExtremeDimensions() [1/2]
template<typename T , typename TFilter >
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testExtremeDimensions |
( |
const unsigned int |
channels, |
|
|
const unsigned int |
filterSize, |
|
|
Worker & |
worker |
|
) |
| |
|
static |
Tests extreme (small) frame dimensions.
- Parameters
-
channels | The number of frame channels, with range [1, infinity) |
filterSize | The size of the filter kernel, with range [1, infinity), must be odd |
worker | The worker object |
- Returns
- True, if succeeded
- Template Parameters
-
T | The data type of each pixel channel, e.g., 'unsigned char', or 'float' |
TFilter | The data type of each filter value, e.g., 'unsigned int', or 'float' |
◆ testExtremeDimensions() [2/2]
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testExtremeDimensions |
( |
Worker & |
worker | ) |
|
|
static |
Tests extreme (small) frame dimensions.
- Parameters
-
- Returns
- True, if succeeded
◆ testFilter()
template<typename T , typename TFilter >
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testFilter |
( |
const unsigned int |
width, |
|
|
const unsigned int |
height, |
|
|
const unsigned int |
channels, |
|
|
const unsigned int |
filterSize, |
|
|
const double |
testDuration, |
|
|
Worker & |
worker |
|
) |
| |
|
static |
Tests the filter function for a given image resolution.
- Parameters
-
width | The width of the test frame in pixel, with range [tFilterSize, infinity) |
height | The height of the test frame in pixel, with range [tFilterSize, infinity) |
channels | The number of frame channels, with range [1, infinity) |
filterSize | The size of the filter kernel, with range [1, infinity), must be odd |
testDuration | Number of seconds for each test, with range (0, infinity) |
worker | The worker object |
- Returns
- True, if succeeded
- Template Parameters
-
T | The data type of each pixel channel, e.g., 'unsigned char', or 'float' |
TFilter | The data type of each filter value, e.g., 'unsigned int', or 'float' |
◆ testFilterFactors()
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testFilterFactors |
( |
| ) |
|
|
static |
Tests the calculation of filter factors.
- Returns
- True, if succeeded
◆ testFilterSizeSigmaConversion()
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testFilterSizeSigmaConversion |
( |
| ) |
|
|
static |
Tests the conversion function between filter size and sigma.
- Returns
- True, if succeeded
◆ testInplace()
template<typename T , typename TFilter >
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testInplace |
( |
const double |
testDuration, |
|
|
Worker & |
worker |
|
) |
| |
|
static |
Tests the in-place Gaussian blur filter.
- Parameters
-
testDuration | Number of seconds for each test, with range (0, infinity) |
worker | The worker object |
- Returns
- True, if succeeded
- Template Parameters
-
T | The data type of each pixel channel, e.g., 'unsigned char', or 'float' |
TFilter | The data type of each filter value, e.g., 'unsigned int', or 'float' |
◆ testNormalDimensions()
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testNormalDimensions |
( |
const double |
testDuration, |
|
|
Worker & |
worker |
|
) |
| |
|
static |
Tests the performance of the frame filter for normal frame dimensions.
- Parameters
-
testDuration | Number of seconds for each test, with range (0, infinity) |
worker | The worker object |
- Returns
- True, if succeeded
◆ testReusableMemory()
template<typename T , typename TFilter >
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testReusableMemory |
( |
const double |
testDuration | ) |
|
|
static |
Tests the performance of the frame filter when using a reusable memory object.
- Parameters
-
testDuration | Number of seconds for each test, with range (0, infinity) |
- Returns
- True, if succeeded
- Template Parameters
-
T | The data type of each pixel channel, e.g., 'uint8_t', or 'float' |
TFilter | The data type of each filter value, e.g., 'unsigned int', or 'float' |
◆ testReusableMemoryComfort()
template<typename T >
static bool Ocean::Test::TestCV::TestFrameFilterGaussian::testReusableMemoryComfort |
( |
const double |
testDuration | ) |
|
|
static |
Tests the performance of the frame filter when using a reusable memory object.
- Parameters
-
testDuration | Number of seconds for each test, with range (0, infinity) |
- Returns
- True, if succeeded
- Template Parameters
-
T | The data type of each pixel channel, e.g., 'uint8_t', or 'float' |
The documentation for this class was generated from the following file: