Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[textures] Image convolution with custom user supplied kernel #3527

Closed
Kimo-s opened this issue Nov 11, 2023 · 1 comment
Closed

[textures] Image convolution with custom user supplied kernel #3527

Kimo-s opened this issue Nov 11, 2023 · 1 comment

Comments

@Kimo-s
Copy link
Contributor

Kimo-s commented Nov 11, 2023

Added the function void ImageKernelConvolution(Image *image, float* karnel, int karenlWidth) that does image convolution from a given user kernel defined as 1D array.

Image: Input image
karnel: pointer to1D float array for the kernel
karenlWidth: The width of the kernel matrix

The kernel matrix is only supported for square sized matrices.

Example results:
Screenshot 2023-11-11 173011
From left to right: Sharpen kernel, right Sobel operator, Gaussian blur done 6 times, Original image

@raysan5
Copy link
Owner

raysan5 commented Nov 12, 2023

I think discussion can follow on open PR, no need for an issue duplicate.

@raysan5 raysan5 closed this as completed Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants