Skip to main content

adjust_log

Function adjust_log 

Source
pub fn adjust_log(img: &Tensor) -> Result<Tensor, ImgProcError>
Expand description

Logarithmic intensity adjustment. Applies logarithmic transform: log(1 + pixel), normalized to [0, 1].

Input is [H, W, C] with non-negative values. The result is scaled so that the maximum output value is 1.0.