Sharpening images
Image sharpening is a common feature that is implemented by many famous image editing software, such as GIMP and Photoshop. The principle of sharpening an image is that we subtract a smoothed version of an image from the original version to get the difference between these two versions, and then add that difference to the original image. We can get the smoothed version by applying the Gaussian smoothing filter to a copy of the image. We will see how to do that using OpenCV later, but the first step here is to create a new Qt plugin project.
Since we created a Qt plugin project named ErodePlugin in the previous section, creating another project like this shouldn't be difficult.
First, we create the directory and the necessary ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access