Navigation
API > API/Runtime > API/Runtime/ImageCore
Description
If the image has any values outside the [0,1] range, rescale that edge of the domain so that it is in [0,1] does not affect images that were previously in [0,1]
also does not change the side of the domain that is not out of bounds eg. values in [0.25,200.0] will be rescaled to [0.25,1.0]
returns bool if any change was made
If the input format is U8 or U16, no change will ever be made and this will return false.
This can be useful if you want to save an HDR/float image to a U8 image format for visualization. This is equivalent to what's called the "UNorm" transformation by the RenderTarget ReadPixels functions.
| Name | FImageCore::ScaleChannelsSoMinMaxIsInZeroToOne |
| Type | function |
| Header File | /Engine/Source/Runtime/ImageCore/Public/ImageCore.h |
| Include Path | #include "ImageCore.h" |
| Source | /Engine/Source/Runtime/ImageCore/Private/ImageParallelFor.cpp |
namespace FImageCore
{
bool FImageCore::ScaleChannelsSoMinMaxIsInZeroToOne
(
const FImageView & ImageToModify
)
}