Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Image > API/Runtime/GeometryCore/Image/TImageBuilder
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Image/ImageBuilder.h |
| Include | #include "Image/ImageBuilder.h" |
TImageBuilder< PixelType > FastDownsample
&40;
int32 SubSteps,
const PixelType & ZeroValue,
TFunctionRef< PixelType(PixelType, int)> AverageFunc
&41; const
Remarks
Very basic downsampling technqiue that just averages NxN pixel blocks. Multi-threaded.
Parameters
| Name | Description |
|---|---|
| SubSteps | each NxN pixel block of this size is averaged into 1 pixel in the output image |
| Zero | value to use with template PixelType must be provided, pixel values will be added to this value |
| AverageFunc | Called with Sum(Pixels) and PixelCount, return value is used as new pixel value (eg should be average) |