Following the thread by Klen about AR application, I would like to ask how to get and show the image from Gstreamer pipeline with Opencv function .
while in the example app, the image is shown on the screen by this function (am i right?)
However, if I want to do the image processing, i should get the image as IplImage* first, which seems impossible without saving the QImage to the device and then read it with cvLoadImage().
unsigned char* data=(unsigned char *) GST_BUFFER_DATA (CameraN900::buffer);
// 2 pixels width, 2 pixels height, 6 bytes per line, RGB888 format
QImage img(data, GLWidget::buffer_width, GLWidget::buffer_height,3*GLWidget::buffer_width, QImage::Format_RGB888);
painter->drawImage(0, 0, img.scaled(800,480));
Is there any other method to do so?