Ocean
InitializerRandomized.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_CV_SYNTHESIS_INITIALIZER_RANDOMIZED_H
9 #define META_OCEAN_CV_SYNTHESIS_INITIALIZER_RANDOMIZED_H
10 
13 
15 
16 namespace Ocean
17 {
18 
19 namespace CV
20 {
21 
22 namespace Synthesis
23 {
24 
25 /**
26  * This class is the base class for all initializers that mainly initialize the synthesis mapping by a heuristic (randomized) approach.
27  * @ingroup cvsynthesis
28  */
29 class InitializerRandomized : virtual public Initializer
30 {
31  protected:
32 
33  /**
34  * Creates a new initializer object.
35  * @param layer The layer for that the initial mapping has to be provided
36  * @param randomGenerator Random generator object used to created random numbers during the initialization process
37  */
38  inline InitializerRandomized(Layer& layer, RandomGenerator& randomGenerator);
39 
40  protected:
41 
42  /// Random number generator.
44 };
45 
47  Initializer(layer),
48  randomGenerator_(randomGenerator)
49 {
50  // nothing to do here
51 }
52 
53 }
54 
55 }
56 
57 }
58 
59 #endif // META_OCEAN_CV_SYNTHESIS_INITIALIZER_RANDOMIZED_H
This class implements the base class for all synthesis initializers.
Definition: Initializer.h:34
This class is the base class for all initializers that mainly initialize the synthesis mapping by a h...
Definition: InitializerRandomized.h:30
RandomGenerator & randomGenerator_
Random number generator.
Definition: InitializerRandomized.h:43
InitializerRandomized(Layer &layer, RandomGenerator &randomGenerator)
Creates a new initializer object.
Definition: InitializerRandomized.h:46
This class implements the base class for all inpainting layers.
Definition: Layer.h:35
This class implements a generator for random numbers.
Definition: RandomGenerator.h:42
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15