mirror of
https://github.com/vale981/Taevitas
synced 2025-03-05 09:31:42 -05:00
dirty_debug
This commit is contained in:
parent
7d8ce1b168
commit
7f57ba058c
1 changed files with 2 additions and 2 deletions
|
@ -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_image->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());
|
||||
|
|
Loading…
Add table
Reference in a new issue