8 #ifndef META_OCEAN_CV_SYNTHESIS_CREATOR_INPAINTING_CONTENT_I_1_H
9 #define META_OCEAN_CV_SYNTHESIS_CREATOR_INPAINTING_CONTENT_I_1_H
55 void createSubset(
const unsigned int firstColumn,
const unsigned int numberColumns,
const unsigned int firstRow,
const unsigned int numberRows)
const override;
66 template <
unsigned int tChannels>
67 void createSubsetChannels(
const unsigned int firstColumn,
const unsigned int numberColumns,
const unsigned int firstRow,
const unsigned int numberRows)
const;
80 template <
unsigned int tChannels>
83 ocean_assert(firstColumn + numberColumns <=
layerI_.
width());
88 const uint8_t* targetData =
target_.
data<uint8_t>();
92 for (
unsigned int y = firstRow; y < firstRow + numberRows; ++y)
94 PixelType* targetRow =
target_.
row<PixelType>(y);
99 for (
unsigned int x = firstColumn; x < firstColumn + numberColumns; ++x)
101 if (maskRow[x] != 0xFFu)
108 targetRow[x] = *((
const PixelType*)(targetData + mapping.
y() * targetStrideElements) + mapping.
x());
bool isValid() const
Returns whether this pixel position object holds two valid parameters.
T y() const
Returns the vertical coordinate position of this object.
Definition: PixelPosition.h:470
T x() const
Returns the horizontal coordinate position of this object.
Definition: PixelPosition.h:458
This class implements the base class for all creators that support mappings for one frame.
Definition: Creator1.h:28
This class implements the base class for all creator objects that create a resulting frame as output.
Definition: CreatorFrame.h:28
Frame & target_
Target frame of the creator.
Definition: CreatorFrame.h:41
This class implements the base class for all creators.
Definition: Creator.h:29
This class is the base class for all creators that support mappings with integer accuracy.
Definition: CreatorI.h:29
const LayerI & layerI_
Specialized layer reference.
Definition: CreatorI.h:41
This class implements a creator object that creates the final synthesis image for a mapping with floa...
Definition: CreatorInpaintingContentI1.h:39
void createSubsetChannels(const unsigned int firstColumn, const unsigned int numberColumns, const unsigned int firstRow, const unsigned int numberRows) const
Specialization of the default function that creates a subset of the information.
Definition: CreatorInpaintingContentI1.h:81
void createSubset(const unsigned int firstColumn, const unsigned int numberColumns, const unsigned int firstRow, const unsigned int numberRows) const override
Creates a subset of the information.
CreatorInpaintingContentI1(const LayerI1 &layer, Frame &target)
Creates a new creator object.
Definition: CreatorInpaintingContentI1.h:70
This class implements a creator that can be distributed to subsets of the synthesis layer.
Definition: CreatorSubset.h:28
unsigned int height() const
Returns the height of this layer.
Definition: Layer.h:169
const Frame & mask() const
Returns the mask of this layer.
Definition: Layer.h:184
unsigned int width() const
Returns the width of this layer.
Definition: Layer.h:164
This class implements a single layer for pixel synthesis within one frame and pixel accuracy.
Definition: LayerI1.h:41
virtual const MappingI & mapping() const =0
Returns the mapping of this synthesis layer.
const PixelPosition * row(const unsigned int y) const
Returns the pointer to a mapping row.
Definition: MappingI.h:243
Template class allowing to define an array of data types.
Definition: DataType.h:27
This class implements Ocean's image class.
Definition: Frame.h:1792
unsigned int strideElements(const unsigned int planeIndex=0u) const
Returns the number of elements within one row, including optional padding at the end of a row for a s...
Definition: Frame.h:4058
T * row(const unsigned int y, const unsigned int planeIndex=0u)
Returns the pointer to the pixel data of a specific row.
Definition: Frame.h:4177
T * data(const unsigned int planeIndex=0u)
Returns a pointer to the pixel data of a specific plane.
Definition: Frame.h:4159
const T * constpixel(const unsigned int x, const unsigned int y, const unsigned int planeIndex=0u) const
Returns the pointer to the constant data of a specific pixel.
Definition: Frame.h:4250
const T * constrow(const unsigned int y, const unsigned int planeIndex=0u) const
Returns the pointer to the constant data of a specific row.
Definition: Frame.h:4193
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15