image-rs / imageproc

Image processing operations
MIT License
723 stars 144 forks source link

Make `Kernel::new` constant #648

Closed cospectrum closed 1 month ago

cospectrum commented 1 month ago

Users may also need a static Kernel!

theotherphil commented 1 month ago

It’s a shame to lose the useful panic message but not the end of the world - I can’t imagine it’s likely that anyone will ever be constructing a Kernel in ways that make it hard to work out the dimensions required.