oa::FnImage::segmentationOverlay
Blend an Int32 semantic label map over an FP32 NCHW RGB/RGBA image. mask is [N,H,W] or [N,1,H,W], palette is FP32 [K,3], and invalid labels leave the source pixel unchanged.
Function Documentation
Blend an Int32 semantic label map over an FP32 NCHW RGB/RGBA image. mask is [N,H,W] or [N,1,H,W], palette is FP32 [K,3], and invalid labels leave the source pixel unchanged.
Parameters
inRtEngine &—
inImageconst Matrix &—
inMaskconst Matrix &—
inPaletteconst Matrix &—
inAlphaoa::F32Default: 0.5F
Returns
MatrixThe declared return value.