[][src]Type Definition imageproc::definitions::Image

type Image<P> = ImageBuffer<P, Vec<<P as Pixel>::Subpixel>>;

An ImageBuffer containing Pixels of type P with storage Vec<P::Subpixel>. Most operations in this library only support inputs of type Image, rather than arbitrary image::GenericImages. This is obviously less flexible, but has the advantage of allowing many functions to be more performant. We may want to add more flexibility later, but this should not be at the expense of performance. When specialisation lands we should be able to do this by defining traits for images with contiguous storage.