Ocean
Loading...
Searching...
No Matches
TestCreatorI1.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_CREATOR_I_1_H
9#define META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_CREATOR_I_1_H
10
12
13#include "ocean/base/Frame.h"
14
15namespace Ocean
16{
17
18namespace Test
19{
20
21namespace TestCV
22{
23
24namespace TestSynthesis
25{
26
27/**
28 * This class implements a test for creators with one frame.
29 * @ingroup testcvsynthesis
30 */
31class OCEAN_TEST_CV_SYNTHESIS_EXPORT TestCreatorI1
32{
33 public:
34
35 /**
36 * Invokes all test functions.
37 * @param width The width of the source frame in pixel, with range [1, infinity)
38 * @param height The height of the source frame in pixel, with range [1, infinity)
39 * @param testDuration Number of seconds for each test, with range (0, infinity)
40 * @param worker The worker object to distribute the CPU load
41 * @return True, if succeeded
42 */
43 static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
44
45 /**
46 * Tests the inpainting content creator.
47 * @param width The width of the source frame in pixel, with range [1, infinity)
48 * @param height The height of the source frame in pixel, with range [1, infinity)
49 * @param testDuration Number of seconds for each test, with range (0, infinity)
50 * @param worker The worker object to distribute the CPU load
51 * @return True, if succeeded
52 */
53 static bool testInpaintingContent(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
54
55 /**
56 * Tests the inpainting content creator with a specified channel number.
57 * @param width The width of the source frame in pixel, with range [1, infinity)
58 * @param height The height of the source frame in pixel, with range [1, infinity)
59 * @param channels The number of frame channels which will be used during the test, with range [1, infinity)
60 * @param testDuration Number of seconds for each test, with range (0, infinity)
61 * @param worker The worker object to distribute the CPU load
62 * @return True, if succeeded
63 */
64 static bool testInpaintingContent(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker& worker);
65
66 /**
67 * Tests the spatial cost information creator.
68 * @param width The width of the source frame in pixel, with range [1, infinity)
69 * @param height The height of the source frame in pixel, with range [1, infinity)
70 * @param testDuration Number of seconds for each test, with range (0, infinity)
71 * @param worker The worker object to distribute the CPU load
72 * @return True, if succeeded
73 */
74 static bool testInformationSpatialCost(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
75
76 /**
77 * Tests the 4-neighborhood cost information creator.
78 * @param width The width of the source frame in pixel, with range [1, infinity)
79 * @param height The height of the source frame in pixel, with range [1, infinity)
80 * @param testDuration Number of seconds for each test, with range (0, infinity)
81 * @param worker The worker object to distribute the CPU load
82 * @return True, if succeeded
83 */
84 static bool testInformationCost4Neighborhood(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
85
86 /**
87 * Tests the 4-neighborhood cost information creator with a specified channel number.
88 * @param width The width of the source frame in pixel, with range [1, infinity)
89 * @param height The height of the source frame in pixel, with range [1, infinity)
90 * @param testDuration Number of seconds for each test, with range (0, infinity)
91 * @param worker The worker object to distribute the CPU load
92 * @return True, if succeeded
93 * @tparam tChannels The number of frame channels which will be used during the test, with range [1, infinity)
94 */
95 template <unsigned int tChannels>
96 static bool testInformationCost4Neighborhood(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
97};
98
99}
100
101}
102
103}
104
105}
106
107#endif // META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_CREATOR_I_1_H
This class implements a test for creators with one frame.
Definition TestCreatorI1.h:32
static bool testInpaintingContent(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the inpainting content creator.
static bool testInpaintingContent(const unsigned int width, const unsigned int height, const unsigned int channels, const double testDuration, Worker &worker)
Tests the inpainting content creator with a specified channel number.
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Invokes all test functions.
static bool testInformationCost4Neighborhood(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the 4-neighborhood cost information creator.
static bool testInformationSpatialCost(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the spatial cost information creator.
static bool testInformationCost4Neighborhood(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the 4-neighborhood cost information creator with a specified channel number.
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