Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Developing a GUI using OpenCV and Qt C++- High-Resolution images
I have been chosen by my Computer Science laboratory in order to develop a Graphical User Interface (GUI) which main goal is to allow the user to open High Resolution images (TIFF format) and manipulate them (zoom in, zoom out, draw rectangles,create and edit annotations...).
I would like to build this GUI using Qt coupled with OpenCV. Nevertheless, I have some doubts about working with OpenCV for this project.
Therefore, my questions are:
. Does Qt allow you to handle High-Resolution TIFF images ? . Does OpenCV allow you to handle High-Resolution TIFF images ? . Is it easy to convert a OpenCV TIFF image into a Qt TIFF image ?
Hi and welcome to devnet,
Can you define High Resolution TIFF ?
But basically the answer would be yes, unless you have very special TIFF files.
@SGaist Thank you very much for your answer !
I am going to manipulate 3024p x 4032p TIFF images. These are my "High-Resolution" TIFF images.
The qt documentation (doc.qt.io/qt-5/qtimageformats-index.html) tells us Qt uses a plugin in order to manipulate Tiff images. Does it work ? What does "bundled third-party code" mean ? Do I need to install an additional library for Qt ?
Yes it works, otherwise it wouldn't be there ;)
No, Qt provides some of the third party libraries it uses like sqlite or libtiff. You can find them in the 3rdparty folder in the sources.
@SGaist Thank you very much ! I'm going to try it !
. Is it easy to convert a OpenCV TIFF image into a Qt TIFF image ?
OpenCV use cv::Mat to store Image data , but Qt use QImage / QPixmap. You need to make a conversion function.
Just Google it and you will find example code: