Realm

oa::image::equalize_hist

Equalize a normalized FP32 image histogram per (batch, channel) plane. Pixel values are quantized into 256 uniform buckets over [0, 1], the per-plane cumulative distribution is spread back over [0, 1] following the equalizeHist contract, and the result keeps the input layout and format. Values outside [0, 1] clamp into the edge buckets. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW and all sizes fit the shader ABI.

FnRust public API

Function Documentation

pub fn equalize_hist( input: &Image ) -> Result<Image>
Equalize a normalized FP32 image histogram per (batch, channel) plane. Pixel values are quantized into 256 uniform buckets over [0, 1], the per-plane cumulative distribution is spread back over [0, 1] following the equalizeHist contract, and the result keeps the input layout and format. Values outside [0, 1] clamp into the edge buckets. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW and all sizes fit the shader ABI.