ifw-ccf 6.0.0
 
Loading...
Searching...
No Matches
testComAdptSim.cpp File Reference

Unit tests for ComAdptSim pattern generation. More...

#include <cmath>
#include <iostream>
#include <numeric>
#include <random>
#include <gtest/gtest.h>
#include <ifw/ccf/common/base.hpp>
#include <ifw/ccf/common/dataFrame.hpp>
#include <ifw/ccf/control/comAdptSim.hpp>
#include <tools.hpp>

Classes

class  ComAdptSimTest
 Test fixture for ComAdptSim tests. More...
 

Functions

 TEST_F (ComAdptSimTest, SimTypeEnumValues)
 
 TEST_F (ComAdptSimTest, SimTypeStringConstants)
 
 TEST_F (ComAdptSimTest, GradientDirEnumValues)
 
 TEST_F (ComAdptSimTest, NoiseDistEnumValues)
 
 TEST_F (ComAdptSimTest, Instantiation)
 
 TEST_F (ComAdptSimTest, HelperComputeMean)
 
 TEST_F (ComAdptSimTest, HelperComputeMax)
 
 TEST_F (ComAdptSimTest, HelperComputeStdDev)
 
 TEST_F (ComAdptSimTest, GaussianPatternCharacteristics)
 Test that Gaussian pattern has central peak.
 
 TEST_F (ComAdptSimTest, FlatPatternCharacteristics)
 Test that Flat pattern has uniform intensity.
 
 TEST_F (ComAdptSimTest, CheckerboardPatternCharacteristics)
 Test that Checkerboard pattern has correct alternating structure.
 
 TEST_F (ComAdptSimTest, GridPatternCharacteristics)
 Test that Grid pattern has regular spot spacing.
 
 TEST_F (ComAdptSimTest, GradientPatternCharacteristics)
 Test that Gradient pattern has monotonic intensity change.
 
 TEST_F (ComAdptSimTest, RingPatternCharacteristics)
 Test that Ring pattern has donut-shaped structure.
 
 TEST_F (ComAdptSimTest, BuildKeyFunction)
 
 TEST_F (ComAdptSimTest, SingleImageSequenceShiftAlgorithm)
 Test that sequence generation from single image applies shifts correctly.
 
 TEST_F (ComAdptSimTest, NoiseAdditionAlgorithm)
 Test that noise addition algorithm works correctly.
 
 TEST_F (ComAdptSimTest, ResolutionMaxPixelValue)
 Test max pixel value calculation for different resolutions.
 
 TEST_F (ComAdptSimTest, PixelValueClamping)
 Test pixel value clamping for different bit depths.
 
 TEST_F (ComAdptSimTest, DataTypeFromResolution)
 Test data type selection based on resolution.
 
 TEST_F (ComAdptSimTest, PixelScalingConversion)
 Test pixel scaling for format conversion.
 
 TEST_F (ComAdptSimTest, MinMaxNormalization)
 Test min-max normalization for pixel data.
 
 TEST_F (ComAdptSimTest, MultiBytePixelWriteRead)
 Test writing and reading different pixel sizes.
 
 TEST_F (ComAdptSimTest, PointerArithmeticForPixels)
 Test pointer arithmetic for multi-byte pixel access.
 

Detailed Description

Unit tests for ComAdptSim pattern generation.

Function Documentation

◆ TEST_F() [1/24]

TEST_F ( ComAdptSimTest ,
BuildKeyFunction  )

◆ TEST_F() [2/24]

TEST_F ( ComAdptSimTest ,
CheckerboardPatternCharacteristics  )

Test that Checkerboard pattern has correct alternating structure.

◆ TEST_F() [3/24]

TEST_F ( ComAdptSimTest ,
DataTypeFromResolution  )

Test data type selection based on resolution.

◆ TEST_F() [4/24]

TEST_F ( ComAdptSimTest ,
FlatPatternCharacteristics  )

Test that Flat pattern has uniform intensity.

◆ TEST_F() [5/24]

TEST_F ( ComAdptSimTest ,
GaussianPatternCharacteristics  )

Test that Gaussian pattern has central peak.

◆ TEST_F() [6/24]

TEST_F ( ComAdptSimTest ,
GradientDirEnumValues  )

◆ TEST_F() [7/24]

TEST_F ( ComAdptSimTest ,
GradientPatternCharacteristics  )

Test that Gradient pattern has monotonic intensity change.

◆ TEST_F() [8/24]

TEST_F ( ComAdptSimTest ,
GridPatternCharacteristics  )

Test that Grid pattern has regular spot spacing.

◆ TEST_F() [9/24]

TEST_F ( ComAdptSimTest ,
HelperComputeMax  )

◆ TEST_F() [10/24]

TEST_F ( ComAdptSimTest ,
HelperComputeMean  )

◆ TEST_F() [11/24]

TEST_F ( ComAdptSimTest ,
HelperComputeStdDev  )

◆ TEST_F() [12/24]

TEST_F ( ComAdptSimTest ,
Instantiation  )

◆ TEST_F() [13/24]

TEST_F ( ComAdptSimTest ,
MinMaxNormalization  )

Test min-max normalization for pixel data.

◆ TEST_F() [14/24]

TEST_F ( ComAdptSimTest ,
MultiBytePixelWriteRead  )

Test writing and reading different pixel sizes.

◆ TEST_F() [15/24]

TEST_F ( ComAdptSimTest ,
NoiseAdditionAlgorithm  )

Test that noise addition algorithm works correctly.

◆ TEST_F() [16/24]

TEST_F ( ComAdptSimTest ,
NoiseDistEnumValues  )

◆ TEST_F() [17/24]

TEST_F ( ComAdptSimTest ,
PixelScalingConversion  )

Test pixel scaling for format conversion.

◆ TEST_F() [18/24]

TEST_F ( ComAdptSimTest ,
PixelValueClamping  )

Test pixel value clamping for different bit depths.

◆ TEST_F() [19/24]

TEST_F ( ComAdptSimTest ,
PointerArithmeticForPixels  )

Test pointer arithmetic for multi-byte pixel access.

◆ TEST_F() [20/24]

TEST_F ( ComAdptSimTest ,
ResolutionMaxPixelValue  )

Test max pixel value calculation for different resolutions.

◆ TEST_F() [21/24]

TEST_F ( ComAdptSimTest ,
RingPatternCharacteristics  )

Test that Ring pattern has donut-shaped structure.

◆ TEST_F() [22/24]

TEST_F ( ComAdptSimTest ,
SimTypeEnumValues  )

◆ TEST_F() [23/24]

TEST_F ( ComAdptSimTest ,
SimTypeStringConstants  )

◆ TEST_F() [24/24]

TEST_F ( ComAdptSimTest ,
SingleImageSequenceShiftAlgorithm  )

Test that sequence generation from single image applies shifts correctly.