mirror of
https://github.com/vale981/Taevitas
synced 2025-03-05 09:31:42 -05:00
dirty_debug
This commit is contained in:
parent
8c12decd64
commit
940442a686
2 changed files with 3 additions and 2 deletions
|
@ -137,11 +137,11 @@ void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
|
|||
// Convert Pixel Format to RGB
|
||||
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PixelFormat::PIXEL_FORMAT_RGB16, &last_image);
|
||||
|
||||
QImage tmp(last_image.GetData(), last_capture->GetCols(), last_capture->GetRows(), QImage::Format::Format_RGB16);
|
||||
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());
|
||||
|
||||
last_preview.convertFromImage(tmp);
|
||||
last_preview.convertFromImage(last_preview_image);
|
||||
|
||||
ui->preview_widget->setPixmap(last_preview);
|
||||
}
|
||||
|
|
|
@ -25,6 +25,7 @@ private:
|
|||
CameraManager cam_man;
|
||||
Recorder recorder;
|
||||
QPixmap last_preview;
|
||||
QImage last_preview_image;
|
||||
FlyCapture2::Image last_image;
|
||||
|
||||
void displayPreview(FlyCapture2::Image *last_capture);
|
||||
|
|
Loading…
Add table
Reference in a new issue