Skip to main content

save_image

Function save_image 

Source
pub fn save_image<B: Backend>(
    image: &Image<B>,
    path: impl AsRef<Path>,
) -> Result<()>
Expand description

Saves the image tensor to the specified file path. Assumes image tensor layout is [C, H, W] with float values in [0.0, 1.0].