image-rs / imageproc

Image processing operations
MIT License
758 stars 149 forks source link

the trait `image::image::GenericImage` is not implemented for `ImageBuffer<Rgb<{integer}>, Vec<{integer}>>` #558

Closed alpaylan closed 8 months ago

alpaylan commented 8 months ago

In the below code, I get the error in the title.

let mut img = ImageBuffer::from_pixel(1000, 1000, Rgb([255, 255, 255]));

draw_line_segment_mut(
    &mut img,
    (0.0, 0.0),
    (100.0, 100.0),
    Rgb([255, 0, 0]),
);

I am using

image = "0.25.0"
imageproc = "0.23.0"

on an M1 Mac. What am I doing wrong?

cospectrum commented 8 months ago

imageproc 0.23 depends on image 0.24, not 0.25