June 2019
Intermediate to advanced
348 pages
8h 28m
English
To write a Qt plugin, we should start a new Qt project from scratch. In the previous editing feature, we simply blurred an image by calling the blur function from OpenCV. Considering that our main purpose is to introduce the plugin mechanism of the Qt library, we will still use a simple function from the OpenCV library to make a simple edit to keep this part clear. Here, we will call the erode function from the OpenCV library to erode the objects in an image.
Let's name the plugin ErodePlugin and create the project from scratch:
$ ls ImageEditor $ mkdir ErodePlugin $ ls ErodePlugin ImageEditor $ cd ErodePlugin $ touch erode_plugin.h erode_plugin.cpp $ qmake -project $ ls erode_plugin.h erode_plugin.cpp ErodePlugin.pro ...
Read now
Unlock full access