Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Image
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Image/ImageInfilling.h |
| Include | #include "Image/ImageInfilling.h" |
Syntax
template<typename PixelType>
class TMarchingPixelInfill
Remarks
TMarchingPixelInfill implements a very basic infilling strategy where the missing pixel with the most "known" neighbours is set to the average value of those neighbours, and this is iterated until all missing pixels are known. A Priority Queue is used to track the active front.
The infill sequence is tracked, which allows it to be "replayed" on multiple images. This is useful in cases where we have separate images with the same holes, which arises when baking textures from world sampling.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< int32 > | InfillSequence | Encoding of infill operations, so that they can be applied to multiple images Values are [ NumPixels, Pixel1Count, Pixel1X, Pixel1Y, Pixel1Nbr1X, Pixel1Nbr1Y, ... |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | ApplyInfill
(
TImageBuilder< OtherPixelType >& Image, |
Fill the missing values in Image by replaying the infill sequence computed by ComputeInfill() | |
| void | ApplyInfill
(
TImageBuilder< PixelType >& Image, |
Fill the missing values in Image by replaying the infill sequence computed by ComputeInfill() | |
| void | ComputeInfill
(
TImageBuilder< PixelType >& Image, |
Fill the values of MissingPixels in Image by propagating from known values. |