Ocean
Loading...
Searching...
No Matches
TestMaskCreator.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_TESTSEGMENTATION_TEST_MASK_CREATOR_H
9#define META_OCEAN_TEST_TESTCV_TESTSEGMENTATION_TEST_MASK_CREATOR_H
10
12
13namespace Ocean
14{
15
16namespace Test
17{
18
19namespace TestCV
20{
21
22namespace TestSegmentation
23{
24
25/**
26 * This class implements a mask analyzer test.
27 * @ingroup testcvsegmentation
28 */
29class OCEAN_TEST_CV_SEGMENTATION_EXPORT TestMaskCreator
30{
31 public:
32
33 /**
34 * Tests all mask creator functions.
35 * @param width The width of the test frame in pixel, with range [32, infinity)
36 * @param height The height of the test frame in pixel, with range [32, infinity)
37 * @param testDuration Number of seconds for each test, with range (0, infinity)
38 * @param worker The worker object to distribute the computational load
39 * @return True, if succeeded
40 */
41 static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
42
43 /**
44 * Tests the join masks function.
45 * @param width The width of the test frame in pixel, with range [1, infinity)
46 * @param height The height of the test frame in pixel, with range [1, infinity)
47 * @param testDuration Number of seconds for each test, with range (0, infinity)
48 * @param worker The worker object to distribute the computational load
49 * @return True, if succeeded
50 */
51 static bool testJoinMasks(const unsigned int width, const unsigned int height, const double testDuration, Worker& worker);
52};
53
54}
55
56}
57
58}
59
60}
61
62#endif // META_OCEAN_TEST_TESTCV_TESTSEGMENTATION_TEST_MASK_CREATOR_H
This class implements a mask analyzer test.
Definition TestMaskCreator.h:30
static bool testJoinMasks(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests the join masks function.
static bool test(const unsigned int width, const unsigned int height, const double testDuration, Worker &worker)
Tests all mask creator functions.
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