I can displayed an image with Qt in a gui application.I want to obtain numeric(matrix) form of image, because I studied on image processing, but I cannot convert the displayed image to matrix form. I do not know what code is used. Can anyone help me with this? Code of displayed image is given below;
#include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow
{
ui->setupUi(this);
QPixmap pix("/home/zeynep/Masaüstü/right.jpg");
QRegion exposed;
pix.scroll(-90,100,pix.rect(), &exposed);
ui->label_pic->setPixmap(pix);
}
MainWindow::~MainWindow()
{
delete ui;
}