fix(synthetic): disable order
This commit is contained in:
parent
effa0ba2ad
commit
b4ddf5a816
|
@ -534,13 +534,28 @@ void Synthetic::DisableStreamData(const Stream &stream, std::uint32_t depth) {
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
case Stream::DISPARITY: {
|
case Stream::DISPARITY: {
|
||||||
if (IsStreamEnabledSynthetic(Stream::DISPARITY_NORMALIZED)) {
|
if (calib_model_ == CalibrationModel::PINHOLE) {
|
||||||
DisableStreamData(Stream::DISPARITY_NORMALIZED, depth + 1);
|
if (IsStreamEnabledSynthetic(Stream::DISPARITY_NORMALIZED)) {
|
||||||
|
DisableStreamData(Stream::DISPARITY_NORMALIZED, depth + 1);
|
||||||
|
}
|
||||||
|
if (IsStreamEnabledSynthetic(Stream::POINTS)) {
|
||||||
|
DisableStreamData(Stream::POINTS, depth + 1);
|
||||||
|
}
|
||||||
|
DeactivateProcessor<DisparityProcessor>();
|
||||||
|
#ifdef WITH_CAM_MODELS
|
||||||
|
} else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) {
|
||||||
|
if (IsStreamEnabledSynthetic(Stream::DISPARITY_NORMALIZED)) {
|
||||||
|
DisableStreamData(Stream::DISPARITY_NORMALIZED, depth + 1);
|
||||||
|
}
|
||||||
|
if (IsStreamEnabledSynthetic(Stream::DEPTH)) {
|
||||||
|
DisableStreamData(Stream::DEPTH, depth + 1);
|
||||||
|
}
|
||||||
|
DeactivateProcessor<DisparityProcessor>();
|
||||||
|
#endif
|
||||||
|
} else {
|
||||||
|
LOG(ERROR) << "Unknow calib model type in device: "
|
||||||
|
<< calib_model_;
|
||||||
}
|
}
|
||||||
if (IsStreamEnabledSynthetic(Stream::POINTS)) {
|
|
||||||
DisableStreamData(Stream::POINTS, depth + 1);
|
|
||||||
}
|
|
||||||
DeactivateProcessor<DisparityProcessor>();
|
|
||||||
} break;
|
} break;
|
||||||
case Stream::DISPARITY_NORMALIZED: {
|
case Stream::DISPARITY_NORMALIZED: {
|
||||||
DeactivateProcessor<DisparityNormalizedProcessor>();
|
DeactivateProcessor<DisparityNormalizedProcessor>();
|
||||||
|
@ -565,7 +580,7 @@ void Synthetic::DisableStreamData(const Stream &stream, std::uint32_t depth) {
|
||||||
DeactivateProcessor<DepthProcessorOCV>();
|
DeactivateProcessor<DepthProcessorOCV>();
|
||||||
#ifdef WITH_CAM_MODELS
|
#ifdef WITH_CAM_MODELS
|
||||||
} else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) {
|
} else if (calib_model_ == CalibrationModel::KANNALA_BRANDT) {
|
||||||
if (IsStreamEnabledSynthetic(Stream::DEPTH)) {
|
if (IsStreamEnabledSynthetic(Stream::POINTS)) {
|
||||||
DisableStreamData(Stream::POINTS, depth + 1);
|
DisableStreamData(Stream::POINTS, depth + 1);
|
||||||
}
|
}
|
||||||
DeactivateProcessor<DepthProcessor>();
|
DeactivateProcessor<DepthProcessor>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user