mirror of
https://github.com/vale981/Taevitas
synced 2025-03-05 09:31:42 -05:00
fix
This commit is contained in:
parent
2002b623dd
commit
87fbd5298f
1 changed files with 2 additions and 2 deletions
|
@ -134,12 +134,12 @@ void MainWindow::frame_captured(FlyCapture2::Image* image) {
|
|||
|
||||
void MainWindow::displayPreview(FlyCapture2::Image* image) {
|
||||
// Convert Pixel Format to RGB
|
||||
FlyCapture2::Image conv_img;
|
||||
/*FlyCapture2::Image conv_img;
|
||||
image->Convert(FlyCapture2::PixelFormat::PIXEL_FORMAT_RGB16, &conv_img);
|
||||
|
||||
current_preview_scene.clear();
|
||||
QImage tmp(image->GetData(), image->GetCols(), image->GetRows(), QImage::Format::Format_RGB16);
|
||||
current_preview_scene.addItem(new QGraphicsPixmapItem(QPixmap::fromImage(tmp)));
|
||||
|
||||
ui->preview_widget->update();
|
||||
ui->preview_widget->update();*/
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue