From 9d30ab9446e166cc0c2ff0cd5902dcb07565855c Mon Sep 17 00:00:00 2001 From: guy-martin <107631373+guy-martin@users.noreply.github.com> Date: Fri, 16 Feb 2024 13:06:34 -0500 Subject: [PATCH] SE-2711 Allow changing all params (#24) * SE-2711 turn calibration data off by default --- stereo_viewer/src/gev/pipeline.cc | 6 +++++- stereo_viewer/src/viewer.cc | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/stereo_viewer/src/gev/pipeline.cc b/stereo_viewer/src/gev/pipeline.cc index d031e15..f60ee3b 100644 --- a/stereo_viewer/src/gev/pipeline.cc +++ b/stereo_viewer/src/gev/pipeline.cc @@ -126,7 +126,11 @@ bool Pipeline::Start(bool calibrate) { m_stream->QueueBuffer( *lIt ); lIt++; } - + + if(m_rectify) m_rectify->GetValue(m_rectify_init); + m_undistort->GetValue(m_undistort_init); + m_pixformat->GetValue( m_pixfmt_init ); + bool rct_value = calibrate?!calibrate:m_rectify_init; bool und_value = calibrate?!calibrate:m_undistort_init; PvString pixformat = calibrate?"YUV422_8":m_pixfmt_init.GetAscii(); diff --git a/stereo_viewer/src/viewer.cc b/stereo_viewer/src/viewer.cc index ffa8c83..8725a60 100644 --- a/stereo_viewer/src/viewer.cc +++ b/stereo_viewer/src/viewer.cc @@ -186,7 +186,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { cfg.cbxColormap->setVisible(false); cfg.chkColormap->setChecked(true); cfg.chkCalibrate->setVisible(true); - cfg.chkCalibrate->setChecked(true); + cfg.chkCalibrate->setChecked(false); cfg.chkCalibrate->setEnabled(true); s_load_colormap(cfg.cbxColormap, COLORMAP_JET); s_load_format(cfg.cbxFormat, false);