Ocean
InitializerCopyMappingI1.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_COPY_MAPPING_I_1_H
9 #define META_OCEAN_CV_SYNTHESIS_INITIALIZER_COPY_MAPPING_I_1_H
10 
16 
17 namespace Ocean
18 {
19 
20 namespace CV
21 {
22 
23 namespace Synthesis
24 {
25 
26 /**
27  * This initializer simply copies an existing mapping.<br>
28  * The existing mapping must have the same dimension as the synthesis layer
29  * @see InitializerMoveMappingI1.
30  * @ingroup cvsynthesis
31  */
33  virtual public InitializerI,
34  virtual public Initializer1
35 {
36  public:
37 
38  /**
39  * Creates a new initializer object.
40  * @param layer The layer for that the initial mapping has to be provided
41  * @param mapping Existing mapping that is copied (must have the same dimension as the layer that receives the mapping)
42  */
43  inline InitializerCopyMappingI1(LayerI1& layer, const MappingI1& mapping);
44 
45  /**
46  * Invokes the initialization.
47  * @see Initializer::invoke().
48  */
49  bool invoke(Worker* worker) const override;
50 
51  private:
52 
53  /// Existing mapping that will be copied.
55 };
56 
58  Initializer(layer),
59  InitializerI(layer),
60  Initializer1(layer),
61  mapping_(mapping)
62 {
63  // nothing to do here
64 }
65 
66 }
67 
68 }
69 
70 }
71 
72 #endif // META_OCEAN_CV_SYNTHESIS_INITIALIZER_COPY_MAPPING_I_1_H
This class is the base class for all initializers that are provided for a single frame only.
Definition: Initializer1.h:29
This initializer simply copies an existing mapping.
Definition: InitializerCopyMappingI1.h:35
InitializerCopyMappingI1(LayerI1 &layer, const MappingI1 &mapping)
Creates a new initializer object.
Definition: InitializerCopyMappingI1.h:57
const MappingI1 & mapping_
Existing mapping that will be copied.
Definition: InitializerCopyMappingI1.h:54
bool invoke(Worker *worker) const override
Invokes the initialization.
This class implements the base class for all synthesis initializers.
Definition: Initializer.h:34
This class implements the base class for all initializer objects that are applied for mappings with i...
Definition: InitializerI.h:30
This class implements a single layer for pixel synthesis within one frame and pixel accuracy.
Definition: LayerI1.h:41
This class implements the pixel mapping between source and target frames.
Definition: MappingI1.h:49
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