image-rs / imageproc

Image processing operations
MIT License
758 stars 149 forks source link

Make `Kernel::new` constant #648

Closed cospectrum closed 5 months ago

cospectrum commented 5 months ago

Users may also need a static Kernel!

theotherphil commented 5 months 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.