Skip to content

Extract KernelUnitLength to a type and use accross duplicated file

Both filters/lighting.rs and filters/convolve_matrix.rs have a kernelUnitLength attribute which gets parsed into a kernel_unit_length: Option<(f64, f64)> field. removed kernelUnitLength duplicate code accross both file and implemented a type that handles the duplicated code and uses the implementation across the program

Fixes #915 (closed)

Merge request reports

Loading