Ocean
Loading...
Searching...
No Matches
Ocean::Test::TestCV::TestFrameFilterGaussian Class Reference

This class implements a test for the Gaussian image blur filter. More...

#include <TestFrameFilterGaussian.h>

Static Public Member Functions

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.
 

Detailed Description

This class implements a test for the Gaussian image blur filter.

Member Function Documentation

◆ test()

static bool Ocean::Test::TestCV::TestFrameFilterGaussian::test ( const double  testDuration,
Worker worker 
)
static

Tests all Gaussian filter functions.

Parameters
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe 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
channelsThe number of frame channels, with range [1, infinity)
filterSizeThe size of the filter kernel, with range [1, infinity), must be odd
workerThe worker object
Returns
True, if succeeded
Template Parameters
TThe data type of each pixel channel, e.g., 'unsigned char', or 'float'
TFilterThe 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
workerThe worker object
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
widthThe width of the test frame in pixel, with range [tFilterSize, infinity)
heightThe height of the test frame in pixel, with range [tFilterSize, infinity)
channelsThe number of frame channels, with range [1, infinity)
filterSizeThe size of the filter kernel, with range [1, infinity), must be odd
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object
Returns
True, if succeeded
Template Parameters
TThe data type of each pixel channel, e.g., 'unsigned char', or 'float'
TFilterThe 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
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe worker object
Returns
True, if succeeded
Template Parameters
TThe data type of each pixel channel, e.g., 'unsigned char', or 'float'
TFilterThe 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
testDurationNumber of seconds for each test, with range (0, infinity)
workerThe 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
testDurationNumber of seconds for each test, with range (0, infinity)
Returns
True, if succeeded
Template Parameters
TThe data type of each pixel channel, e.g., 'uint8_t', or 'float'
TFilterThe 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
testDurationNumber of seconds for each test, with range (0, infinity)
Returns
True, if succeeded
Template Parameters
TThe data type of each pixel channel, e.g., 'uint8_t', or 'float'

The documentation for this class was generated from the following file: