30 #include "tests/datasets/HOGDescriptorDataset.h" 35 #include "tests/validation/fixtures/HOGDetectorFixture.h" 46 RelativeTolerance<float> tolerance(0.01f);
49 const auto DetectionWindowStrideDataset =
framework::dataset::make(
"DetectionWindowStride", { Size2D(8, 8), Size2D(16, 16) });
70 DetectionWindowStrideDataset,
71 datasets::SmallHOGDescriptorDataset()),
72 framework::dataset::
make("
Format", Format::U8)),
82 DetectionWindowStrideDataset,
83 datasets::LargeHOGDescriptorDataset()),
BorderMode
Methods available to handle borders.
CLArray< DetectionWindow > CLDetectionWindowArray
OpenCL Array of Detection Windows.
1 channel, 1 U8 per channel
std::enable_if< is_container< T >::value, ContainerDataset< T > >::type make(std::string name, T &&values)
Helper function to create a ContainerDataset.
This file contains all available output stages for GEMMLowp on OpenCL.
#define TEST_SUITE(SUITE_NAME)
void validate_detection_windows(T target_first, T target_last, U reference_first, U reference_last, V tolerance=AbsoluteTolerance< float >(), float allowed_missing_percentage=5.f, float allowed_mismatch_percentage=5.f)
Validate detection windows.
FIXTURE_DATA_TEST_CASE(RunSmall, CLAbsoluteDifferenceFixture< uint8_t >, framework::DatasetMode::PRECOMMIT, combine(datasets::SmallShapes(), AbsoluteDifferenceU8Dataset))
DatasetMode
Possible dataset modes.
HOGDetectorValidationFixture< CLTensor, CLHOG, CLDetectionWindowArray, CLHOGDescriptor, CLAccessor, CLArrayAccessor< DetectionWindow >, CLHOGAccessor, CLHOGDetector, uint8_t, float > CLHOGDetectorFixture
Format
Image colour formats.
TEST_SUITE_END() DATA_TEST_CASE(Configuration
Pixels outside the image are assumed to have the same value as the closest image pixel.
Pixels outside the image are assumed to have a constant value.
combine(combine(combine(concat(datasets::SmallShapes(), datasets::LargeShapes()), framework::dataset::make("DataType",{DataType::U8, DataType::S16})), datasets::BorderModes()), framework::dataset::make("filter_size",{5}))