Expand description
Trait definitions and type aliases.
Traits§
- A type to which we can clamp a value of type T. Implementations are not required to handle
NaN
s gracefully. - Pixels which have a named Black value.
- Pixels which have a named White value.
- Something with a 2d position.
- Something with a score.
Type Aliases§
- An
ImageBuffer
containing Pixels of type P with storageVec<P::Subpixel>
. Most operations in this library only support inputs of typeImage
, rather than arbitraryimage::GenericImage
s. 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.