Skip to content

Commit

Permalink
fix(CameraEngine.cpp): fix a bug that build error when CUDA is not su…
Browse files Browse the repository at this point in the history
…pport.
  • Loading branch information
Practice3DVision committed Apr 14, 2024
1 parent 2e70f68 commit 677de63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions gui/src/CameraEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,7 @@ void CameraEngine::setPatternType(const int patternType) {
} else if (patternType == AppType::PatternMethod::MutiplyFrequency) {
}
} else if (patternType == AppType::PatternMethod::MultiViewStereoGeometry) {
#ifdef OPENCV_WITH_CUDA_MODULE
TrinocularMultiViewStereoGeometryPattern::Params params;

params.shiftTime_ = std::round(shiftTime);
Expand Down Expand Up @@ -777,6 +778,11 @@ void CameraEngine::setPatternType(const int patternType) {
cv::cv2eigen(PR4, params.PR4_);

pattern_ = TrinocularMultiViewStereoGeometryPattern::create(params);
#else
qDebug() << QString("TrinocularMultiViewStereoGeometryPattern is "
"disable when CUDA isn't support.");
return;
#endif
}

slCamera->setPattern(pattern_);
Expand Down

0 comments on commit 677de63

Please sign in to comment.