oa::image::calc_back_project
Back-project a per-plane U32 histogram onto an FP32 image. Each pixel is quantized with the calc_hist rule over [lower, upper) into bins buckets taken from the histogram’s last dimension; the output pixel carries the histogram count as an FP32 value, or 0.0 when the source falls outside the range. Histogram leading dimensions must equal the image’s leading plane dimensions, following calcBackProject. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW, the histogram is a nonempty U32 Matrix of matching leading shape, lower/upper are finite with lower < upper, and all sizes fit the shader ABI.
Function Documentation
Back-project a per-plane U32 histogram onto an FP32 image. Each pixel is quantized with the calc_hist rule over [lower, upper) into bins buckets taken from the histogram’s last dimension; the output pixel carries the histogram count as an FP32 value, or 0.0 when the source falls outside the range. Histogram leading dimensions must equal the image’s leading plane dimensions, following calcBackProject. Errors Returns an error unless the image is nonempty FP32 NCHW/CHW, the histogram is a nonempty U32 Matrix of matching leading shape, lower/upper are finite with lower < upper, and all sizes fit the shader ABI.