Orbbec SDK v2 integration (new CameraOrbbecSDK class) (#1590)

* Orbbec SDK 2 integration (new CameraOrbbecSDK class)

* Added rectification option, fixed the build without orbbec sdk

* Fixed timestamp issue on Windows

* Removed WITH_ORBBEC_SDK=ON by default in case v1 is installed. Enabled inter imu when selecting orbbec sdk.

* requiring orbbec version=2 to avoid confusion

* Finalizing options
This commit is contained in:
matlabbe
2025-10-07 10:22:16 -07:00
committed by GitHub
parent 5aec9bacec
commit f0dab18005
22 changed files with 3078 additions and 1816 deletions
+4 -4
View File
@@ -1141,14 +1141,14 @@ void ImageView::mouseMoveEvent(QMouseEvent * event)
if(_mouseTracking->isChecked() &&
!_graphicsView->scene()->sceneRect().isNull() &&
!_image.isNull() &&
!_imageDepthCv.empty() &&(_imageDepthCv.type() == CV_16UC1 || _imageDepthCv.type() == CV_32FC1))
!_imageDepthCv.empty() && (_imageDepthCv.type() == CV_16UC1 || _imageDepthCv.type() == CV_32FC1))
{
float scale, offsetX, offsetY;
computeScaleOffsets(this->rect(), scale, offsetX, offsetY);
float u = (event->pos().x() - offsetX) / scale;
float v = (event->pos().y() - offsetY) / scale;
float depthScale = 1;
if(_image.width() > _imageDepthCv.cols)
if(_image.width() != _imageDepthCv.cols)
{
depthScale = float(_imageDepthCv.cols) / float(_image.width());
}
@@ -1448,8 +1448,8 @@ void ImageView::setImageDepth(const QImage & imageDepth, const QImage & imageDep
UASSERT(_imageDepth.width() && _imageDepth.height());
if( _image.width() > 0 &&
_image.width() > _imageDepth.width() &&
_image.height() > _imageDepth.height())
_image.width() != _imageDepth.width() &&
_image.height() != _imageDepth.height())
{
// scale depth to rgb
_imageDepth = _imageDepth.scaled(_image.size());