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. Unavailable synchronous data
Forum Updated to NodeBB v4.3 + New Features

Unavailable synchronous data

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 2.5k 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.
  • T Offline
    T Offline
    thomas11live.com.sg
    wrote on last edited by
    #1

    Dear All,
    I have OpenCV image, get the image data from the Queue.

    IplImage *opcvImg = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1);
    opcvImg = ImageQueue::getQueue();
    Upto here, in the watch window I can see that opcvImg has all information.

    But when I convert the IplImage* to cv::Mat as
    Mat matData(opcvImg, true);
    OR
    Mat matData = cvarrToMat(opcvImg);
    matData in the watch window shows Unavailable syschronous data.

    Let me put in some more information, actually the code runs in a separate thread as follow

    @void processingbyWatershed::run()
    {
    IplImage *opcvImg = cvCreateImage(cvSize(col_size, row_size), IPL_DEPTH_8U,1);

    while(1)
    {
    
        if(!ImageQueue::isEmpty())
        {
             opcvImg = ImageQueue::getQueue(); 
            Mat original(opcvImg, true);
            //Mat original = cvarrToMat(opcvImg);
        }
    }
    

    }@
    What could be the problem?
    Thanks

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      This does not look like Qt-related problem. You would probably be better off asking this on OpenCV-related forum or mailing list.

      (Z(:^

      1 Reply Last reply
      0
      • T Offline
        T Offline
        thomas11live.com.sg
        wrote on last edited by
        #3

        No, my query is can I have a hint of what are the possible causes of making matData to be Unavailable syschronous data.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          What version of QtCreator / GCC / GDB are you using?

          1 Reply Last reply
          0
          • T Offline
            T Offline
            thomas11live.com.sg
            wrote on last edited by
            #5

            I am using QT Creator 2.4.1

            1 Reply Last reply
            0
            • L Offline
              L Offline
              lgeyer
              wrote on last edited by
              #6

              Try upgrading to 2.6+ and a recent GDB (as for example distributed with "MinGW-builds":http://sourceforge.net/projects/mingwbuilds/). There are known problems with older versions of GDB which result in the error you've mentioned.

              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