Skip to content

Commit 8fea329

Browse files
jorge-ortegaLegNeato
authored andcommitted
denoiser example: Replace image::io::Reader with image::ImageReader
1 parent a494bbb commit 8fea329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/optix/denoiser/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use cust::memory::DeviceBuffer;
22
use cust::prelude::{Stream, StreamFlags};
33
use cust::util::SliceExt;
4-
use image::io::Reader;
4+
use image::ImageReader;
55
use optix::context::DeviceContext;
66
use optix::denoiser::{Denoiser, DenoiserModelKind, DenoiserParams, Image, ImageFormat};
77
use std::error::Error;
@@ -28,7 +28,7 @@ fn main() -> Result<(), Box<dyn Error>> {
2828
.expect("input was not a file")
2929
.to_string_lossy()
3030
.to_string();
31-
let img = Reader::open(opt.input)?.decode()?;
31+
let img = ImageReader::open(opt.input)?.decode()?;
3232

3333
let mut rgb = img.into_rgb8();
3434
let mut linear = vec![Vec3::<f32>::zero(); rgb.as_raw().len()];

0 commit comments

Comments
 (0)