fix(calib process): change the processors enable order
This commit is contained in:
parent
dc10d73c96
commit
b89b9a20e4
|
@ -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;
|
||||
|
|
|
@ -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<PointsProcessorOCV>());
|
||||
#ifdef WITH_CAM_MODELS
|
||||
} else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) {
|
||||
EnableStreamData(Stream::DEPTH, depth + 1);
|
||||
CHECK(ActivateProcessor<PointsProcessor>());
|
||||
#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<DepthProcessorOCV>());
|
||||
#ifdef WITH_CAM_MODELS
|
||||
} else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) {
|
||||
EnableStreamData(Stream::DISPARITY, depth + 1);
|
||||
CHECK(ActivateProcessor<DepthProcessor>());
|
||||
#endif
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user