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. Converting flycapture2 image to Qimage

Converting flycapture2 image to Qimage

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 2.5k Views
  • 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,
    Anybody used flycapture from Point Grey Research.
    I am trying to convert the flycapure2 image to Qimage to display in QGraphicsView.
    What I did was
    @
    error = cam.RetrieveBuffer( &rawImage );
    // Convert the raw image
    error = rawImage.Convert(PIXEL_FORMAT_RGB8, &img.imageframe);
    //Convert to QImage
    QImage Img(img.imageframe,1280, 960, QImage::Format_RGB888);
    scene->addPixmap(QPixmap::fromImage(Img));@

    But the compiler complains as
    No matching function for call to "QImage::QImage(Flycapture2::Image&,...)
    What is the correct way?
    Thanks

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wspilot
      wrote on last edited by
      #2

      Better show us some more code. Unclear types, esp. the type you are feeding to QImage (see QImage "types":http://qt-project.org/doc/qt-4.8/qimage.html#Format-enum).

      1 Reply Last reply
      1
      • Z Offline
        Z Offline
        ZEYAD
        wrote on last edited by
        #3

        I am having the same problem right now did you have any solution

        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