dirty_debug

This commit is contained in:
Hiro Protagonist 2017-03-21 18:06:02 +13:00
parent 0f4a867e98
commit 97240e2ed4

View file

@ -136,10 +136,7 @@ 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);
if(e != FlyCapture2::PGRERROR_OK){
showError(e);
}
//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());