You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the code below to transform a grayscale image from SubImage<&DynamicImage> to DynamicImage.
Is there something I am missing during this conversion?
Expected
I would expect the new dest image to be L16 as well.
let tmp_img = source.to_image();letmut dest = DynamicImage::new(tmp_img.width(), tmp_img.height(), img.inner().color());
dest.copy_from(&*source,0,0)?;
I am using the code below to transform a grayscale image from
SubImage<&DynamicImage>
toDynamicImage
.Is there something I am missing during this conversion?
Expected
I would expect the new
dest
image to beL16
as well.Actual behaviour
dest
image is ofRgba8
.Reproduction steps
The text was updated successfully, but these errors were encountered: