# Image Custom Convolution Kernel

Apply custom convolution kernel by defining your own matrix values for personalized image effects and processing

> Canonical page: https://elysiatools.com/en/tools/image-custom-kernel

- **Category:** Design

- **Keywords:** image, custom, convolution, kernel, matrix, filter, effects, personalized

## Overview

The Image Custom Convolution Kernel tool allows you to apply precise mathematical filters to your images by defining custom matrix values, enabling advanced image processing and unique visual effects.

## Inputs

- **Image File** (file): Image to apply custom convolution kernel
- **Kernel Size** (select): Size of the convolution matrix
- **Kernel Values** (textarea): Matrix values (left to right, top to bottom). For 3x3: 9 values, for 5x5: 25 values, etc.
- **Intensity** (number): Strength of the convolution effect (0.1-10.0)
- **Normalize Kernel** (checkbox): Normalize kernel so that sum of all elements equals 1 (except for edge detection)
- **Output Mode** (select): Additional processing on the output

## When to use

- When you need to perform custom image sharpening, blurring, or edge detection.
- When you want to experiment with specific mathematical kernels for computer vision research.
- When you need to apply specialized artistic filters that standard image editors do not provide.

## How it works

- Upload your source image in a supported format like JPEG, PNG, or WebP.
- Select the matrix size (3x3, 5x5, or 7x7) and input your custom numerical values.
- Adjust the intensity and normalization settings to control the strength and balance of the effect.
- Choose an optional output mode, such as grayscale or threshold, and process the image.

## Use cases

- Creating custom artistic filters for digital photography.
- Applying specific mathematical kernels for image enhancement or noise reduction.
- Generating edge-detected versions of images for computer vision preprocessing.

## Frequently asked questions

### What is a convolution kernel?

A convolution kernel is a small matrix used in image processing to apply effects like blurring, sharpening, or edge detection by calculating the weighted sum of neighboring pixels.

### How do I format the kernel values?

Enter your values as a comma-separated list, reading from left to right and top to bottom. For a 3x3 matrix, provide 9 values; for 5x5, provide 25 values.

### What does the 'Normalize Kernel' option do?

Normalization ensures the sum of all elements in the matrix equals 1, which prevents the output image from becoming too bright or too dark.

### Can I apply this to any image format?

The tool supports common formats including JPEG, PNG, WebP, GIF, BMP, and TIFF.

### What is the maximum intensity I can set?

The intensity can be adjusted on a scale from 0.1 to 10.0 to control the impact of the filter.

## Related tools

- [Image Blending Effect](https://elysiatools.com/en/tools/image-add-blending): Blend multiple images together using various blend modes for creative compositions and effects
- [Bilateral Filter](https://elysiatools.com/en/tools/image-bilateral-filter): Apply bilateral filter for edge-preserving smoothing that reduces noise while maintaining image details
- [Image Box Blur](https://elysiatools.com/en/tools/image-box-blur): Apply box blur kernel for simple uniform averaging and fast noise reduction
- [Image Color Burn Blend](https://elysiatools.com/en/tools/image-color-burn): Apply color burn blend mode between two images for dramatic darkening and intense color effects
- [Image Color Dodge Blend](https://elysiatools.com/en/tools/image-color-dodge): Apply color dodge blend mode between two images for bright, ethereal and glowing effects
- [Image Convolution Kernel](https://elysiatools.com/en/tools/image-convolve): Apply standard convolution kernels (blur, sharpen, edge detection, emboss) for image processing and effects
- [Image Gaussian Blur](https://elysiatools.com/en/tools/image-gaussian): Apply Gaussian blur kernel for smooth noise reduction and image softening with precise control
- [Image Gradient Operation](https://elysiatools.com/en/tools/image-gradient): Apply gradient operations (Sobel, Prewitt, Roberts) for edge detection and image enhancement

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing TypeScript Samples](https://elysiatools.com/en/samples/web-image-processing-typescript): Web TypeScript image processing examples including image read/save, scaling, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion
- [Android Image Processing Kotlin Samples](https://elysiatools.com/en/samples/android-image-processing-kotlin): Android Kotlin image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Image Edge Detection and Convolution Kernel Lab](https://elysiatools.com/en/hubs/image-edge-detection-and-convolution-kernels): Extract the luminance channel, suppress noise with a recorded radius, compare Sobel, Prewitt, Roberts, and Laplacian operators, tune thresholded edge detection, and reproduce the winning result as an explicit convolution kernel.
