Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt + OpenCV concate window
Forum Updated to NodeBB v4.3 + New Features

Qt + OpenCV concate window

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 329 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cherault
    wrote on last edited by
    #1

    Dear all,

    Using OpenCV within Qt 5, I would like to create an automatic formated window of concatenated images.
    I have a specific loop which enable the concatenation of various images, and I would like to plot it inside the main window through QTCreator.

    The function is:

    		Size sz(100,100);
    		Mat rois;
    		vector<Rect2d> rects = trackers.getObjects();
    
    		for(unsigned i=0; i<rects.size(); i++)
    		{
    			Mat patch;
    
    			resize(frame(rects[i]), patch, sz);
    
    			if (rois.empty())
    			{
    				rois = patch.clone();
    			}
    			else
    			{
    				hconcat(rois, patch, rois);
    			}
    		}
    

    How can I show the "rois" image within a preformed window ?

    Thanks for your help and support.

    Regards,

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi,

      Once you have your final image, make a QImage out of it and apply it to a QLabel.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved