How to blur an image in Qt

Today I want to share the source code of an example project that shows you how to blur (Gaussian blur) an image (QImage to be precise) without using any third party image processing libraries such as OpenCV. Sometimes it might be useful to avoid deploying OpenCV libs just for achieving a blur effect.

The idea is simple. You perform convolution of a Kernel matrix representing Gaussian Blur effect and your image. Below is a screenshot of the complete and ready to build Qt project and you can download the actual source code using the button just below it.

Qt Blur Image

 Download BlurMyPicQt Source Code

Just put a comment if you have any questions.

Good luck!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.