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

Matrix oa::FnImage::segmentationOverlay( Engine & inRt, const Matrix & inImage, const Matrix & inMask, const Matrix & inPalette, oa::F32 inAlpha = 0.5F ) Matrix oa::FnImage::segmentationOverlay( const Matrix & inImage, const Matrix & inMask, const Matrix & inPalette, oa::F32 inAlpha = 0.5F )
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

inRt
Engine &

inImage
const Matrix &

inMask
const Matrix &

inPalette
const Matrix &

inAlpha
oa::F32

Default: 0.5F

Returns

Matrix

The declared return value.