Lines Matching refs:image2Draw_mat
2285 DefaultViewPort::DefaultViewPort(CvWindow* arg, int arg2) : QGraphicsView(arg), image2Draw_mat(0)
2311 image2Draw_mat = cvCreateMat(viewport()->height(), viewport()->width(), CV_8UC3);
2312 cvZero(image2Draw_mat);
2323 if (image2Draw_mat)
2324 cvReleaseMat(&image2Draw_mat);
2405 if (!image2Draw_mat || !CV_ARE_SIZES_EQ(image2Draw_mat, mat))
2407 if (image2Draw_mat)
2408 cvReleaseMat(&image2Draw_mat);
2411 image2Draw_mat = cvCreateMat(mat->rows, mat->cols, CV_8UC3);
2412 image2Draw_qt = QImage(image2Draw_mat->data.ptr, image2Draw_mat->cols, image2Draw_mat->rows, image2Draw_mat->step, QImage::Format_RGB888);
2415 ratioX = width() / float(image2Draw_mat->cols);
2416 ratioY = height() / float(image2Draw_mat->rows);
2422 cvConvertImage(mat, image2Draw_mat, (origin != 0 ? CV_CVTIMG_FLIP : 0) + CV_CVTIMG_SWAP_RB);
2580 ratioX = width() / float(image2Draw_mat->cols);
2581 ratioY = height() / float(image2Draw_mat->rows);
2585 QSize newSize = QSize(image2Draw_mat->cols, image2Draw_mat->rows);
2884 if(image2Draw_mat)
2885 return QSize(image2Draw_mat->cols, image2Draw_mat->rows);
2893 image2Draw_qt = QImage(image2Draw_mat->data.ptr, image2Draw_mat->cols, image2Draw_mat->rows,image2Draw_mat->step,QImage::Format_RGB888);