mirror of
https://github.com/vale981/Taevitas
synced 2025-03-05 09:31:42 -05:00
dirty_debug
This commit is contained in:
parent
a0430ab9dd
commit
a6f14ec394
1 changed files with 3 additions and 5 deletions
|
@ -137,12 +137,10 @@ void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
|
|||
// Convert Pixel Format to RGB
|
||||
FlyCapture2::Image last_image;
|
||||
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PIXEL_FORMAT_BGR, &last_image);
|
||||
qDebug() << *last_capture->GetData();
|
||||
|
||||
last_preview_image = QImage(last_image.GetData(), last_capture->GetCols(), last_capture->GetRows(), QImage::Format_BGR30);
|
||||
|
||||
|
||||
last_preview_image.scaledToWidth(500);
|
||||
//ui->preview_widget->setFixedSize(last_preview_image.width(), last_preview_image.height());
|
||||
//last_preview_image.scaledToWidth(500);
|
||||
ui->preview_widget->setFixedSize(last_preview_image.width(), last_preview_image.height());
|
||||
|
||||
last_preview.convertFromImage(last_preview_image);
|
||||
ui->preview_widget->setPixmap(last_preview);
|
||||
|
|
Loading…
Add table
Reference in a new issue