NumPower / numpower

PHP extension for efficient scientific computing and array manipulation with GPU support
https://numpower.org
Other
185 stars 4 forks source link

Convolve2D SciPy porting and color pallete support for GD images #39

Closed henrique-borba closed 11 months ago

henrique-borba commented 11 months ago

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

The convolution was not working as it should so the CPU convolution was ported from SciPy and now works correctly with all options. There is still a need for the same port for the GPU, but this will require more time to analyze the options (kernel, cuDNN, etc.).

Some GD images that are not truecolor did not load correctly and caused a segmentation fault.