Skip to Content
OpenCV By Example
book

OpenCV By Example

by Prateek Joshi, David Millán Escrivá, Vinícius G. Mendonça
January 2016
Intermediate to advanced
296 pages
5h 59m
English
Packt Publishing
Content preview from OpenCV By Example

Creating the Graphical User Interface

Before we start with the image processing algorithms, we will create the main user interface for our application. We will use a QT-based user interface to allow us to create single buttons.

The application receives one input parameter to load the image to be processed, and we will create the following four buttons:

  • Show histogram
  • Equalize histogram
  • Lomography effect
  • Cartoonize effect

We can see the four results in the following screenshot:

Creating the Graphical User Interface

Let's develop our project. First of all, we will include the required OpenCV headers. We define an img matrix to store the input image, and create a constant string to use the new ...

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.
Start your free trial

You might also like

Mastering OpenCV 4 - Third Edition

Mastering OpenCV 4 - Third Edition

Roy Shilkrot, David Millán Escrivá

Publisher Resources

ISBN: 9781785280948Supplemental Content