Ocean
Loading...
Searching...
No Matches
test/testcv/testsynthesis/Utilities.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_UTILITIES_H
9#define META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_UTILITIES_H
10
12
13#include "ocean/base/Frame.h"
15
16namespace Ocean
17{
18
19namespace Test
20{
21
22namespace TestCV
23{
24
25namespace TestSynthesis
26{
27
28/**
29 * This class implements some utilities functions.
30 * @ingroup testcvsynthesis
31 */
32class OCEAN_TEST_CV_SYNTHESIS_EXPORT Utilities
33{
34 public:
35
36 /**
37 * Returns a randomized binary mask for inpainting, the mask may contain random padding at the end of each row.
38 * @param width The width of the mask, in pixel, with range [1, infinity)
39 * @param height The height of the mask, in pixel, with range [1, infinity)
40 * @param maskValue The mask value to be used, with range [0, 255]
41 * @param randomGenerator The random generator to be used
42 * @return The resulting mask
43 */
44 static Frame randomizedInpaintingMask(const unsigned int width, const unsigned int height, const uint8_t maskValue, RandomGenerator& randomGenerator);
45};
46
47}
48
49}
50
51}
52
53}
54
55#endif // META_OCEAN_TEST_TESTCV_TESTSYNTHESIS_TEST_UTILITIES_H
This class implements Ocean's image class.
Definition Frame.h:1808
This class implements a generator for random numbers.
Definition RandomGenerator.h:42
This class implements some utilities functions.
Definition test/testcv/testsynthesis/Utilities.h:33
static Frame randomizedInpaintingMask(const unsigned int width, const unsigned int height, const uint8_t maskValue, RandomGenerator &randomGenerator)
Returns a randomized binary mask for inpainting, the mask may contain random padding at the end of ea...
The namespace covering the entire Ocean framework.
Definition Accessor.h:15