diff --git a/src/mynteye/api/processor/points_processor.cc b/src/mynteye/api/processor/points_processor.cc index b9dd867..3e1e6c9 100644 --- a/src/mynteye/api/processor/points_processor.cc +++ b/src/mynteye/api/processor/points_processor.cc @@ -75,6 +75,7 @@ Object *PointsProcessor::OnCreateOutput() { bool PointsProcessor::OnProcess( Object *const in, Object *const out, Processor *const parent) { MYNTEYE_UNUSED(parent) + std::cout << calib_infos_->left.height << std::endl; float fx = 3.6797709792391299e+02; float fy = 3.6808712539453859e+02; diff --git a/src/mynteye/api/synthetic.cc b/src/mynteye/api/synthetic.cc index 12c6d85..4265a76 100644 --- a/src/mynteye/api/synthetic.cc +++ b/src/mynteye/api/synthetic.cc @@ -438,11 +438,12 @@ void Synthetic::EnableStreamData(const Stream &stream, std::uint32_t depth) { } return; case Stream::POINTS: { stream_enabled_mode_[stream] = MODE_SYNTHETIC; - EnableStreamData(Stream::DISPARITY, depth + 1); if (calib_model_ == CalibrationModel::PINHOLE) { + EnableStreamData(Stream::DISPARITY, depth + 1); CHECK(ActivateProcessor()); #ifdef WITH_CAM_MODELS } else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) { + EnableStreamData(Stream::DEPTH, depth + 1); CHECK(ActivateProcessor()); #endif } else { @@ -452,11 +453,12 @@ void Synthetic::EnableStreamData(const Stream &stream, std::uint32_t depth) { } return; case Stream::DEPTH: { stream_enabled_mode_[stream] = MODE_SYNTHETIC; - EnableStreamData(Stream::POINTS, depth + 1); if (calib_model_ == CalibrationModel::PINHOLE) { + EnableStreamData(Stream::POINTS, depth + 1); CHECK(ActivateProcessor()); #ifdef WITH_CAM_MODELS } else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) { + EnableStreamData(Stream::DISPARITY, depth + 1); CHECK(ActivateProcessor()); #endif } else {