dirty_debug

This commit is contained in:
Hiro Protagonist 2017-03-21 18:07:21 +13:00
parent 97240e2ed4
commit 7d8ce1b168

View file

@ -135,8 +135,8 @@ void MainWindow::frame_captured(FlyCapture2::Image* image) {
void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
// Convert Pixel Format to RGB
last_image.DeepCopy(last_capture);
//FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PixelFormat::PIXEL_FORMAT_RGB16, &last_image);
//last_image.DeepCopy(last_capture);
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PixelFormat::PIXEL_FORMAT_RGB16, &last_image);
last_preview_image = QImage(last_image.GetData(), last_capture->GetCols(), last_capture->GetRows(), QImage::Format::Format_RGB16);
ui->preview_widget->setFixedSize(last_capture->GetCols(), last_capture->GetRows());