Skip to content

Commit

Permalink
into vec
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarriba committed Sep 29, 2024
1 parent 84c3aa2 commit 5a99e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/kornia-io/src/functional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ where

let image = match img.color() {
image::ColorType::L8 => {
GenericImage::L8(Image::<u8, 1>::new(size, img.into_luma8().to_vec())?)
GenericImage::L8(Image::<u8, 1>::new(size, img.into_luma8().into_vec())?)
}
image::ColorType::Rgb8 => {
GenericImage::Rgb8(Image::<u8, 3>::new(size, img.into_rgb8().to_vec())?)
GenericImage::Rgb8(Image::<u8, 3>::new(size, img.into_rgb8().into_vec())?)
}
_ => return Err(IoError::UnsupportedImageFormat),
};
Expand Down

0 comments on commit 5a99e93

Please sign in to comment.