Ocean
InitializerAreaConstrained.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_AREA_CONSTRAINED_H
9 #define META_OCEAN_CV_SYNTHESIS_INITIALIZER_AREA_CONSTRAINED_H
10 
13 
14 #include "ocean/base/Frame.h"
15 
16 namespace Ocean
17 {
18 
19 namespace CV
20 {
21 
22 namespace Synthesis
23 {
24 
25 /**
26  * This class implements a base class for all initializers basing on area constraints.
27  * @ingroup cvsynthesis
28  */
30 {
31  public:
32 
33  /**
34  * Creates a new initializer object.
35  * @param layer The layer for that the initial mapping has to be provided
36  * @param filter The filter mask that divides the target region into desired and undesired target content
37  */
38  inline InitializerAreaConstrained(Layer& layer, const Frame& filter);
39 
40  protected:
41 
42  /// Synthesis filter dividing the target region into desired and undesired content.
43  const Frame& filter_;
44 };
45 
47  Initializer(layer),
48  filter_(filter)
49 {
50  // nothing to do here
51 }
52 
53 }
54 
55 }
56 
57 }
58 
59 #endif // META_OCEAN_CV_SYNTHESIS_INITIALIZER_AREA_CONSTRAINED_H
This class implements a base class for all initializers basing on area constraints.
Definition: InitializerAreaConstrained.h:30
const Frame & filter_
Synthesis filter dividing the target region into desired and undesired content.
Definition: InitializerAreaConstrained.h:43
InitializerAreaConstrained(Layer &layer, const Frame &filter)
Creates a new initializer object.
Definition: InitializerAreaConstrained.h:46
This class implements the base class for all synthesis initializers.
Definition: Initializer.h:34
This class implements the base class for all inpainting layers.
Definition: Layer.h:35
This class implements Ocean's image class.
Definition: Frame.h:1760
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15