Realm

oa::image::accumulate_weighted

Blend an image into a running average as input * alpha + accumulator * (1 - alpha) per element, following accumulateWeighted. Errors Returns an error unless both images are nonempty FP32 NCHW/CHW images with identical shape, layout, and format and alpha is finite.

FnRust public API

Function Documentation

pub fn accumulate_weighted( input: &Image, accumulator: &Image, alpha: f32 ) -> Result<Image>
Blend an image into a running average as input * alpha + accumulator * (1 - alpha) per element, following accumulateWeighted. Errors Returns an error unless both images are nonempty FP32 NCHW/CHW images with identical shape, layout, and format and alpha is finite.