Ocean
|
This class implements the base class for all inpainting layers. More...
Public Member Functions | |
unsigned int | width () const |
Returns the width of this layer. More... | |
unsigned int | height () const |
Returns the height of this layer. More... | |
const Frame & | frame () const |
Returns the frame of this layer. More... | |
Frame & | frame () |
Returns the frame of this layer. More... | |
const Frame & | mask () const |
Returns the mask of this layer. More... | |
Frame & | mask () |
Returns the mask of this layer. More... | |
const PixelBoundingBox & | boundingBox () const |
Returns the optional bounding box of this layer. More... | |
virtual const Mapping & | mapping () const =0 |
Returns the mapping of this synthesis layer. More... | |
virtual Mapping & | mapping ()=0 |
Returns the mapping of this synthesis layer. More... | |
operator bool () const | |
Returns whether this layer holds at least one pixel. More... | |
Protected Member Functions | |
Layer ()=default | |
Creates an empty inpainting layer. More... | |
Layer (const Layer &layer) | |
Copy constructor. More... | |
Layer (Layer &&layer) noexcept | |
Move constructor. More... | |
Layer (Frame &frame, const Frame &mask, const PixelBoundingBox &boundingBox=PixelBoundingBox()) | |
Creates a new inpainting layer by a given frame and corresponding mask. More... | |
virtual | ~Layer () |
Destructs the inpainting layer. More... | |
Layer & | operator= (const Layer &layer) |
Assign operator. More... | |
Layer & | operator= (Layer &&layer) noexcept |
Move operator. More... | |
Protected Attributes | |
unsigned int | width_ = 0u |
Width of this synthesis layer in pixel, with range [0, infinity) More... | |
unsigned int | height_ = 0u |
Height of this synthesis layer in pixel, with range [0, infinity) More... | |
Frame | frame_ |
Frame of the inpainting layer, never owning the memory. More... | |
Frame | mask_ |
Mask of the inpainting layer, with same dimension and pixel origin as the defined frame, always owning the memory. More... | |
PixelBoundingBox | boundingBox_ |
Optional bounding box covering all mask pixels, if defined. More... | |
This class implements the base class for all inpainting layers.
The inpainting layer holds one inpainting frame with a corresponding inpainting mask.
Frame and mask must have the same frame dimensions and pixel origins.
Optional, each layer can hold a bounding box enclosing the inpainting area to speedup the computation.
|
protecteddefault |
Creates an empty inpainting layer.
|
protected |
Copy constructor.
The resulting layer will hold a copy of the underlying image data.
layer | The layer to be copied |
|
protectednoexcept |
Move constructor.
layer | The layer to be moved |
|
protected |
Creates a new inpainting layer by a given frame and corresponding mask.
frame | Inpainting frame for this layer |
mask | Inpainting mask of this layer |
boundingBox | Optional inpainting bounding box covering all mask pixels, if defined |
|
protectedvirtual |
Destructs the inpainting layer.
|
inline |
Returns the optional bounding box of this layer.
|
inline |
Returns the frame of this layer.
|
inline |
Returns the frame of this layer.
|
inline |
Returns the height of this layer.
|
pure virtual |
Returns the mapping of this synthesis layer.
Implemented in Ocean::CV::Synthesis::LayerI1, Ocean::CV::Synthesis::LayerF1, Ocean::CV::Synthesis::LayerI, and Ocean::CV::Synthesis::LayerF.
|
pure virtual |
Returns the mapping of this synthesis layer.
Implemented in Ocean::CV::Synthesis::LayerI, Ocean::CV::Synthesis::LayerF, Ocean::CV::Synthesis::LayerI1, and Ocean::CV::Synthesis::LayerF1.
|
inline |
Returns the mask of this layer.
|
inline |
Returns the mask of this layer.
|
inlineexplicit |
Returns whether this layer holds at least one pixel.
Assign operator.
Afterwards, this layer will hold a copy of the underlying image data.
layer | The layer to be copied |
Move operator.
layer | The layer to be moved |
|
inline |
Returns the width of this layer.
|
protected |
Optional bounding box covering all mask pixels, if defined.
|
protected |
Frame of the inpainting layer, never owning the memory.
|
protected |
Height of this synthesis layer in pixel, with range [0, infinity)
|
protected |
Mask of the inpainting layer, with same dimension and pixel origin as the defined frame, always owning the memory.
|
protected |
Width of this synthesis layer in pixel, with range [0, infinity)