Minor tweaks
This commit is contained in:
parent
e96bab7ce6
commit
385e60dd41
1 changed files with 6 additions and 5 deletions
|
|
@ -2156,8 +2156,9 @@ void ImageBlurGaussian(Image *image, int blurSize)
|
|||
ImageFormat(image, format);
|
||||
}
|
||||
|
||||
// The kernel matrix is assumed to be square. Only supply the width of the kernel
|
||||
void ImageKernelConvolution(Image *image, float* kernel, int kernelSize)
|
||||
// Apply custom square convolution kernel to image
|
||||
// NOTE: The convolution kernel matrix is expected to be square
|
||||
void ImageKernelConvolution(Image *image, const float *kernel, int kernelSize)
|
||||
{
|
||||
if ((image->data == NULL) || (image->width == 0) || (image->height == 0) || kernel == NULL) return;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue