mirror of
https://github.com/vale981/Taevitas
synced 2025-03-05 17:41:42 -05:00
dirty_debug
This commit is contained in:
parent
9f9fb3955d
commit
97fa3fdf7f
2 changed files with 3 additions and 2 deletions
|
@ -136,6 +136,9 @@ void MainWindow::frame_captured(FlyCapture2::Image* image) {
|
||||||
void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
|
void MainWindow::displayPreview(FlyCapture2::Image* last_capture) {
|
||||||
// Convert Pixel Format to RGB
|
// Convert Pixel Format to RGB
|
||||||
FlyCapture2::Image last_image;
|
FlyCapture2::Image last_image;
|
||||||
|
QImage last_preview_image;
|
||||||
|
QPixmap last_preview;
|
||||||
|
|
||||||
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PIXEL_FORMAT_RGB, &last_image);
|
FlyCapture2::Error e = last_capture->Convert(FlyCapture2::PIXEL_FORMAT_RGB, &last_image);
|
||||||
|
|
||||||
last_preview_image = QImage(last_image.GetData(), last_image.GetCols(), last_image.GetRows(), QImage::Format_RGB888);
|
last_preview_image = QImage(last_image.GetData(), last_image.GetCols(), last_image.GetRows(), QImage::Format_RGB888);
|
||||||
|
|
|
@ -24,8 +24,6 @@ private:
|
||||||
Ui::MainWindow *ui;
|
Ui::MainWindow *ui;
|
||||||
CameraManager cam_man;
|
CameraManager cam_man;
|
||||||
Recorder recorder;
|
Recorder recorder;
|
||||||
QPixmap last_preview;
|
|
||||||
QImage last_preview_image;
|
|
||||||
|
|
||||||
void displayPreview(FlyCapture2::Image *last_capture);
|
void displayPreview(FlyCapture2::Image *last_capture);
|
||||||
void disableRecOptions();
|
void disableRecOptions();
|
||||||
|
|
Loading…
Add table
Reference in a new issue