![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ImageInfilling.h>
Public Member Functions | |
| void | ComputeInfill (TImageBuilder< PixelType > &Image, const TArray< FVector2i > &MissingPixels, PixelType MissingValue, TFunctionRef< PixelType(PixelType SumOfNbrValues, int NbrCount)> NormalizeFunc) |
| template<typename OtherPixelType > | |
| void | ApplyInfill (TImageBuilder< OtherPixelType > &Image, TFunctionRef< OtherPixelType(OtherPixelType SumOfNbrValues, int NbrCount)> NormalizeFunc) const |
| void | ApplyInfill (TImageBuilder< PixelType > &Image, TFunctionRef< PixelType(PixelType SumOfNbrValues, int NbrCount)> NormalizeFunc) const |
Public Attributes | |
| TArray< int32 > | InfillSequence |
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.
|
inline |
Fill the missing values in Image by replaying the infill sequence computed by ComputeInfill()
| NormalizeFunc | Implements an "average" operation for the template OtherPixelType, normally (SumOfNbrValues / NbrCount) |
|
inline |
Fill the missing values in Image by replaying the infill sequence computed by ComputeInfill()
| NormalizeFunc | Implements an "average" operation for the template PixelType, normally (SumOfNbrValues / NbrCount) |
|
inline |
Fill the values of MissingPixels in Image by propagating from known values.
| MissingValue | this value is used to indicate 'missing' in the image. Input pixels do not have to be set to this value, they are set internally to avoid map lookups |
| NormalizeFunc | Implements an "average" operation for the template PixelType, normally (SumOfNbrValues / Count) |
| TArray<int32> UE::Geometry::TMarchingPixelInfill< PixelType >::InfillSequence |